File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
rtic_v0.5/stm32l0_monotonic/src
rtic_v1/stm32l0_monotonic/src Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ use core::fmt::Write;
77
88use panic_halt as _;
99use rtic:: app;
10- use stm32l0xx_hal:: prelude:: * ;
11- use stm32l0xx_hal:: { pac, rcc:: Config , serial} ;
10+ use stm32l0xx_hal:: { pac, prelude:: * , rcc:: Config , serial} ;
1211
1312use crate :: monotonic_stm32l0:: { Duration , Instant , Tim6Monotonic , U16Ext } ;
1413
Original file line number Diff line number Diff line change 11#![ no_main]
22#![ no_std]
33
4- use panic_rtt_target as _;
5-
64mod monotonic_stm32l0;
5+
76use core:: fmt:: Write ;
7+
8+ use panic_rtt_target as _;
9+ use rtt_target:: { rprintln, rtt_init_print} ;
10+
811use embedded_time:: rate:: Baud ;
9- use monotonic_stm32l0:: { Duration , Instant , Tim6Monotonic , U16Ext } ;
1012use rtic:: app;
11- use rtt_target:: { rprintln, rtt_init_print} ;
1213use stm32l0xx_hal:: { pac, prelude:: * , rcc:: Config , serial} ;
1314
15+ use monotonic_stm32l0:: { Duration , Instant , Tim6Monotonic , U16Ext } ;
16+
1417const INTERVAL_MS : u16 = 500 ;
1518
1619#[ app(
You can’t perform that action at this time.
0 commit comments