Commit Graph

23 Commits

Author SHA1 Message Date
Savanni D'Gerinel bda8637c08 Allow passing an MCU description to reprocess just that one file.
This is a useful convenience for debugging one particular processor
2023-04-02 13:20:16 -04:00
Savanni D'Gerinel f17af2ba44 Resolve ambiguities with the timer/counter code
The goal was to add attiny85, but this ended up adding a lot more, too. The problem was with the TC16 module, which seems to be a bit ambiguous between the hardware description file and the datasheet.
2023-04-02 13:14:50 -04:00
Savanni D'Gerinel 8235d34f95 Add CS, PDI, and PDO pins
This has the side effect of adding atmega32u4 and atmega16u4
2023-04-02 11:37:13 -04:00
Savanni D'Gerinel f516e1216b Rename MISO/MOSI to SerialDataIn and SerialDataOut 2023-04-02 11:35:35 -04:00
Dylan McKay ba6dec1b60 Move the target-cpu feature enable logic back into a build script
It didn't do anything in the core generator.
2021-01-29 21:46:01 +13:00
Dylan McKay 0f333527c4 By default, the crate should only bother compiling the MCU being targeted 2021-01-29 20:44:08 +13:00
Dylan McKay d6ab7fafd2 Improve the core generator so that it doesn't generate broken modules
Now that the core generator is set to generate modules for all
microcontrollers, we need to blacklist the ones it cannot yet handle.
2021-01-29 20:44:08 +13:00
Dylan McKay ccad9c169b Stop autogenerating config.rs file 2021-01-29 20:44:08 +13:00
Dylan McKay db36e8b0b7 Move the 'core_generator' from a build script to an in-repository tool
The core generator will be run manually before release.
2021-01-29 20:44:08 +13:00
Dylan McKay 2a3bcbda02 Fix device detection logic 2020-07-25 01:57:04 +12:00
Dylan McKay cb163a21bc Get the examples compiling again 2020-07-25 01:56:58 +12:00
Dylan McKay 0963ff0f7f Switch the crate to Rust edition '2018' 2020-06-20 06:03:43 +12:00
Dylan McKay 15dc60d9a1 Add explicit 'dyn' to trait references
Fix deprecation warnings.
2020-06-20 05:59:12 +12:00
Dylan McKay e2443720fb Use std::env::var rather than env! in the build script
This will let the crate build on crates.io.
2018-11-06 00:03:06 +13:00
Dylan McKay 7f3f874eec Automatically assume CPU frequency when building docs 2018-11-05 23:48:19 +13:00
Dylan McKay aecd4edb36 Rename Mask to RegisterBits
This is much more intuitive.
2018-11-05 23:32:51 +13:00
Dylan McKay f90d5b2d0b Clean up the documentation and public exports
The interrupt helper struct does not need to be public.

Add some documentation to a bunch of types.
2018-11-05 23:32:51 +13:00
Dylan McKay 8a320ca9da Assume atmega328 when building documentation
This allows 'cargo doc', and notably, docs.rs to work.
2018-11-05 23:32:51 +13:00
Dylan McKay 4b451634e7 Rename AVR_FREQUENCY to AVR_FREQUENCY_HZ
A bit less ambiguous.
2018-11-05 23:32:51 +13:00
Dylan McKay dcab721dc1 Use the correct timer thing 2018-11-05 23:32:51 +13:00
Dylan McKay 61c62ad0ed Merge Mask and Bitset, remove Bitset
There isn't as much value as I thought in making the distinction.
2018-11-05 23:32:51 +13:00
Dylan McKay 3f3c8e2559 Move 'mod' to more appropriate place 2018-11-05 23:32:39 +13:00
Dylan McKay e1a05bbf96 Move the build script into a subdir 2018-11-05 23:32:39 +13:00