all: Drop unnecessary access mode patches
Due to a change in atdf2svd [1], all these access mode patches are no
longer required - they are now translated correctly from the vendor
source file.
Drop all patches which no longer change the output (the code before and
after this change is equivalent when using the new atdf2svd).
[1]: https://github.com/Rahix/atdf2svd/commit/a189276b3540b647fab832946edf0acf39730a0e
Add attiny841 and attiny861
patch: spi: Patch enumerated values for SPI prescaler
Rename the values for the SPI clock prescaler from VAL_0xXX to more
meaningful identifiers.
Signed-off-by: Rahix <rahix@rahix.de>
Add support for atmega328pb
Extract common EXINT patch from tiny84/85
Extract common EEPROM patch from tiny84/85/88
Extract common USI patch from tiny84/85
Make the PINx registers writeable
Add patches for ADC peripherals
Add a patch to fixup a few registers in the ADC peripheral
for ATmega328P, ATmega32U4, ATmega1280, and ATmega64.
common: Fix a few patches
- Fix some descriptions
- Rename ambiguous WDT options
atmega1280: Factor out USART into a common patch
Signed-off-by: Rahix <rahix@rahix.de>
atmega32u4, attiny85: Add tc0 patch
Signed-off-by: Rahix <rahix@rahix.de>
svdpatch: Add _write_constraint modifier
"_write_constraint" allows to change the write-constraint
to one of:
- "enum": Allow only enumerated values (useEnumeratedValues)
- "none": Completely remove the <writeConstraint> tag
- [min, max]: Allow only values in a certain range (this can
be used to make the bits() method safe)
Fixes #8
Signed-off-by: Rahix <rahix@rahix.de>
common: Add some comments to the patch files
Signed-off-by: Rahix <rahix@rahix.de>
atmega328p: Add patch & fix ACSR access mode
Signed-off-by: Rahix <rahix@rahix.de>
atmega32u4, attiny85: Add more patches
Signed-off-by: Rahix <rahix@rahix.de>