Skip to content

Commit d3edddd

Browse files
authored
Merge pull request #664 from stm32-rs/alarmx
repr for adc enums, move adc pins to module
2 parents 7e46586 + 7eb5b14 commit d3edddd

File tree

4 files changed

+754
-811
lines changed

4 files changed

+754
-811
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111

12-
- move gpio impls in subdir, remove unused `From` impls
12+
- move gpio, dma impls, adc pins in subdir, remove unused `From` impls [#658] [#664]
1313
- Bump `embedded-hal` to `1.0.0-alpha.10`. See [their changelog][embedded-hal-1.0.0-alpha.10] for further details. Note that this included breaking changes to the previous alpha APIs. [#663]
1414

15+
[#658]: https://github.com/stm32-rs/stm32f4xx-hal/pull/658
1516
[#663]: https://github.com/stm32-rs/stm32f4xx-hal/pull/663
17+
[#664]: https://github.com/stm32-rs/stm32f4xx-hal/pull/664
1618
[embedded-hal-1.0.0-alpha.10]: https://github.com/rust-embedded/embedded-hal/blob/v1.0.0-alpha.10/embedded-hal/CHANGELOG.md
1719

1820
## [v0.16.2] - 2023-06-27

examples/rtc_alarm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use panic_halt as _;
99
use rtt_target::{rprintln, rtt_init_print};
1010

1111
use crate::hal::prelude::*;
12-
use crate::hal::rtc::{Alarm, AlarmDay, Event, Rtc};
12+
use crate::hal::rtc::{Alarm, Event, Rtc};
1313
use cortex_m::interrupt::{free, Mutex};
1414
use time::{
1515
macros::{date, time},
@@ -40,7 +40,7 @@ fn main() -> ! {
4040
.unwrap();
4141

4242
// Set alarm A for 1 minute
43-
rtc.set_alarm(Alarm::AlarmA, AlarmDay::Date(today), time!(21:58:32))
43+
rtc.set_alarm(Alarm::AlarmA, today, time!(21:58:32))
4444
.unwrap();
4545
rtc.enable_wakeup(8.secs());
4646
rtc.listen(&mut p.EXTI, Event::AlarmA);

0 commit comments

Comments
 (0)