|
1 | 1 | _svd: ../svd/attiny817.svd
|
| 2 | + |
| 3 | +CRCSCAN: |
| 4 | + CTRLB: |
| 5 | + SRC: |
| 6 | + _replace_enum: |
| 7 | + FLASH: [0, "CRC on entire flash"] |
| 8 | + BOOTAPP: [1, "CRC on boot and appl section of flash"] |
| 9 | + BOOT: [2, "CRC on boot section of flash"] |
| 10 | + MODE: |
| 11 | + _replace_enum: |
| 12 | + PRIORITY: [0, "Priority to flash"] |
| 13 | + |
| 14 | +NVMCTRL: |
| 15 | + CTRLA: |
| 16 | + CMD: |
| 17 | + _replace_enum: |
| 18 | + NONE: [0, "No command"] |
| 19 | + WP: [1, "Write page"] |
| 20 | + ER: [2, "Erase page"] |
| 21 | + ERWP: [3, "Erase and write page"] |
| 22 | + PBC: [4, "Page buffer clear"] |
| 23 | + CHER: [5, "Chip erase"] |
| 24 | + EEER: [6, "EEPROM erase"] |
| 25 | + WFU: [7, "Write fuse (PDI only)"] |
| 26 | + |
| 27 | +SLPCTRL: |
| 28 | + CTRLA: |
| 29 | + SMODE: |
| 30 | + _replace_enum: |
| 31 | + IDLE: [0, "Idle mode"] |
| 32 | + STANDBY: [1, "Standby Mode"] |
| 33 | + PDOWN: [2, "Power-down Mode"] |
| 34 | + |
| 35 | +TCD0: |
| 36 | + EVCTRL?: |
| 37 | + CFG: |
| 38 | + _replace_enum: |
| 39 | + NEITHER: [0, "Neither Filter nor Asynchronous Event is enabled"] |
| 40 | + FILTERON: [1, "Input Capture Noise Cancellation Filter enabled"] |
| 41 | + ASYNCON: [2, "Asynchronous Event output qualification enabled"] |
| 42 | + |
| 43 | +"PORT?": |
| 44 | + DIR: |
| 45 | + "P*": |
| 46 | + # Make all Pins use the same enum |
| 47 | + _replace_enum: |
| 48 | + Input: [0, "Input"] |
| 49 | + Output: [1, "Output"] |
| 50 | + |
| 51 | + # make PINxCTRL a rust slice |
| 52 | + _array: |
| 53 | + "PIN?CTRL": {} |
| 54 | + |
| 55 | +"USART?": |
| 56 | + STATUS: |
| 57 | + _modify: |
| 58 | + # The RXSIF bit is actually writable to clear the flag |
| 59 | + RXSIF: |
| 60 | + access: read-write |
| 61 | + # The WFB bit is write-only |
| 62 | + WFB: |
| 63 | + access: write-only |
| 64 | + |
| 65 | +"SPI?": |
| 66 | + CTRLA: |
| 67 | + DORD: |
| 68 | + # Make it an enum |
| 69 | + _replace_enum: |
| 70 | + MsbFirst: [0, "Most significant byte first"] |
| 71 | + LsbFirst: [1, "Least significant byte first"] |
| 72 | + |
| 73 | +CCL: |
| 74 | + _cluster: |
| 75 | + "LUT%s": |
| 76 | + description: "CCL LUT configuration cluster" |
| 77 | + "LUT?CTRLA": {} |
| 78 | + "LUT?CTRLB": {} |
| 79 | + "LUT?CTRLC": {} |
| 80 | + "TRUTH?": {} |
| 81 | + |
| 82 | + # turn all SEQCTRL-registers into slices |
| 83 | + _array: |
| 84 | + "SEQCTRL?": {} |
| 85 | + |
| 86 | +CPUINT: |
| 87 | + CTRLA: |
| 88 | + IVSEL: |
| 89 | + _replace_enum: |
| 90 | + AFTERBOOT: [0, "Interrupt vectors are placed after the BOOT section of the Flash"] |
| 91 | + INBOOT: [1, "Interrupt vectors are placed at the start of the BOOT section of the Flash"] |
| 92 | + CVT: |
| 93 | + _replace_enum: |
| 94 | + NORMAL: [0, "Compact Vector Table function is disabled"] |
| 95 | + COMPACT: [1, "Compact Vector Table function is enabled"] |
| 96 | + LVL0RR: |
| 97 | + _replace_enum: |
| 98 | + FIXED: [0, "Priority is fixed for priority level 0 interrupt requests: The lowest interrupt vector address has the highest priority."] |
| 99 | + ROUNDROBIN: [1, "The round robin priority scheme is enabled for priority level 0 interrupt requests"] |
0 commit comments