ci: Attempt building multple chips at once as well
Signed-off-by: Rahix <rahix@rahix.de>
Switch to a new design as outlined in #17
Signed-off-by: Rahix <rahix@rahix.de>
hack: Make sure you cannot build for more than one chip
Signed-off-by: Rahix <rahix@rahix.de>
common: Fix a few patches
- Fix some descriptions
- Rename ambiguous WDT options
atmega328p: Add missing patches
This commit adds patches for ATmega328P by copying the commons from ATmega32U4, omitting PLL because the 328p lacks that feature (#11)
atmega1280: Add remaining common patches
atmega1280: Factor out USART into a common patch
Signed-off-by: Rahix <rahix@rahix.de>
Add USART1 patch to atmega1280.
Add build-script to auto-generate chip-defs
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>
atmega1280: Add missing Peripherals::take()
Signed-off-by: Rahix <rahix@rahix.de>
make: Make sed usage more portable
fixes #5
Signed-off-by: Rahix <rahix@rahix.de>
atmega328p: Add patch & fix ACSR access mode
Signed-off-by: Rahix <rahix@rahix.de>