attiny85: Add patch for Timer/Counter 1
Signed-off-by: Rahix <rahix@rahix.de>
atmega328p: Add patch for 8-bit asynchronous timer
Signed-off-by: Rahix <rahix@rahix.de>
atmega32u4: Add patch for 10-bit timer/counter
Signed-off-by: Rahix <rahix@rahix.de>
atmega32u4,atmega328p: Add patch for 16-bit timers
Signed-off-by: Rahix <rahix@rahix.de>
patch: Restructure timer patches
Redesign timer patch file structure for better modularity. Now,
`timer/<chip>.yaml` defines all timer peripherals for a chip and uses
peripheral-level includes for patching the actual peripheral. The
actual peripheral patches live in `timer/dev/<type>.yaml`.
The intermediate `<chip>.yaml` file is needed because peripheral-level
includes are not allowed in top-level files.
Signed-off-by: Rahix <rahix@rahix.de>
Add support for ATmega2560
Update README in preparation for release
Signed-off-by: Rahix <rahix@rahix.de>
Add version for avr-device-macros
Signed-off-by: Rahix <rahix@rahix.de>
Include generated files instead of build-script
Signed-off-by: Rahix <rahix@rahix.de>
Document #[interrupt] and #[entry]
Signed-off-by: Rahix <rahix@rahix.de>
macros: Add a #[entry] macro
Add a #[entry] macro for declaring the entry-point of the program,
similar to what cortex-m-rt is doing.
Signed-off-by: Rahix <rahix@rahix.de>
Update proc-macro dependencies
Update to syn 1.0 and fix the interrupt macro to work well with the new
version.
Signed-off-by: Rahix <rahix@rahix.de>
Add patches for ADC peripherals
Add a patch to fixup a few registers in the ADC peripheral
for ATmega328P, ATmega32U4, ATmega1280, and ATmega64.
ci: Fix nightly to 2020-07-12
Fix nightly to a version where rustfmt was still available.
Signed-off-by: Rahix <rahix@rahix.de>
make: Allow overriding rustup toolchain
Allow overriding the rustup toolchain used for rustfmt by invoking make
like this:
make RUSTUP_TOOLCHAIN=nightly-2020-07-12
This will (hopefully) help when working with nightly versions where
rustfmt is unavailable.
Signed-off-by: Rahix <rahix@rahix.de>