Commit Graph

70 Commits

Author SHA1 Message Date
Dylan McKay 9904454521 Make the 'avr-std-stub' dependency optional
This way, downstream users may user their own panic handlers and
exception handling personality functions if they desire.
2020-07-26 03:08:40 +12:00
Dylan McKay 921b305cc1
Merge pull request #26 from shepmaster/optional-std
Make the std-stub optional
2020-07-26 03:04:15 +12:00
Jake Goulding c02a95baa5 Make the std-stub optional
This allows people to provide their own `panic_handler`
2020-07-25 10:05:35 -04:00
Dylan McKay 572fb8be7c
Merge pull request #20 from avr-rust/factor-out-std-stub
Factor out std stub into a crate
2020-07-26 00:40:25 +12:00
Dylan McKay 869113a693 Use the std stub definitions from the 'avr-std-stub' crate 2020-07-26 00:33:58 +12:00
Dylan McKay 6dfffaa3f9 Factor the 'std_stub' module out into the 'avr-std-stub' crate
This way it can be reused by other crates.
2020-07-26 00:24:09 +12:00
Dylan McKay 871e7a6573 Add a UART example
It uses the legacy module, but some more work will be required to have a
high-level UART interface based on the ruduino::Register trait.
2020-07-25 02:45:22 +12:00
Dylan McKay 65c363509c Bump patch version to 0.2.2 2020-07-25 01:58:22 +12:00
Dylan McKay 04861a0578 Merge branch 'fixup-bitrot' 2020-07-25 01:57:09 +12:00
Dylan McKay bcef4ad612 Relax patch version contraints on target-cpu-fetch dependency 2020-07-25 01:57:04 +12: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 bd9d6d14e9 Add an empty whitespace line to test CI 2020-07-24 20:17:22 +12:00
Dylan McKay b2c9a293da Add Docker based CI pipeline 2020-07-24 20:13:34 +12:00
Dylan McKay 6fa56ed4cd Bump crate patch version 2020-07-23 21:21:45 +12:00
Dylan McKay 10bf1ba6b3
Merge pull request #17 from jdrouet/patch-1
Add missing public new function for Timer16
2020-07-23 21:20:23 +12:00
Jérémie Drouet e6cc6005ef
Add missing public new function for Timer16
This function is public for `Timer8`
2020-07-22 22:37:25 +02:00
Dylan McKay ab5cc85d29 Bump the crate minor version 2020-06-20 06:04:07 +12:00
Dylan McKay 0963ff0f7f Switch the crate to Rust edition '2018' 2020-06-20 06:03:43 +12:00
Dylan McKay d85627612e Remove the 'panic_handler' feature from crate attributes
The feature has been stabilized for quite a while now.
2020-06-20 05:59:48 +12:00
Dylan McKay 15dc60d9a1 Add explicit 'dyn' to trait references
Fix deprecation warnings.
2020-06-20 05:59:12 +12:00
Dylan McKay 181a0b7214 Update uses of the deprecated 'asm!' macro to 'llvm_asm!' 2020-06-20 05:57:37 +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 7a8572e094
Merge pull request #4 from dylanmckay/pin-support
WIP: Support for autogenerated mcu cores
2018-11-05 23:42:09 +13:00
Dylan McKay 49a34da4e2 Fixes from incorrect rebase 2018-11-05 23:37:50 +13:00
Dylan McKay 3fbe33504a Fixes 2018-11-05 23:35:46 +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 f94b23ed1d Use the new panic handler feature
The "panic_fmt" lang item no longer exists; it has been replaced with
the unstable feature #[panic_handler]
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 2430724262 Remove temporarily-added debugging files 2018-11-05 23:32:51 +13:00
Dylan McKay 2b58e36065 Add documentation 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 c486e1b7a9 Rename crate to 'ruduino' 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
Dylan McKay 76298abdb3 Add myself to authors 2018-11-05 23:32:39 +13:00
Dylan McKay c5946dc846 Remove all compiler warnings 2018-11-05 23:32:39 +13:00
Dylan McKay d3d41e457a Silence the half-written module 2018-11-05 23:32:39 +13:00
Dylan McKay 3e29e87d38 Rename ADDR to ADDRESS 2018-11-05 23:32:39 +13:00
Dylan McKay c5dac9d7c0 Move the serial module into a 'legacy' module 2018-11-05 23:32:39 +13:00
Dylan McKay ea1aef9b1a Remove as much atmega328p-hardcoded stuff as possible 2018-11-05 23:32:39 +13:00
Dylan McKay cb6e0d3b69 Invert the direction of the Register<T> type parameter 2018-11-05 23:32:39 +13:00
Dylan McKay 0157a8553c Implement the Timer16 trait 2018-11-05 23:32:39 +13:00
Dylan McKay d125f69f7d Get 16-bit timers working 2018-11-05 23:32:39 +13:00
Dylan McKay 274d4611ec More work done 2018-11-05 23:32:39 +13:00
Dylan McKay 1f638dbea3 Add a timer trait 2018-11-05 23:32:29 +13:00