File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
6
6
use embassy_sync:: blocking_mutex:: Mutex ;
7
7
use embassy_time_driver:: Driver ;
8
8
use embassy_time_queue_utils:: Queue ;
9
+ // use rp_pac::timer::vals::ClkSys;
10
+
9
11
#[ cfg( feature = "rp2040" ) ]
10
12
use pac:: TIMER ;
11
13
#[ cfg( feature = "_rp235x" ) ]
@@ -131,8 +133,9 @@ pub unsafe fn init() {
131
133
}
132
134
#[ cfg( all( feature = "_rp235x" , feature = "timer-src-clk-sys" ) ) ]
133
135
{
134
- // The PAC currently only defines `TIMER0` even though the RP2350 also has a `TIMER1`.
135
- let timer_0 = TIMER0 ;
136
+ // The PAC currently only defines `TIMER0` as `TIMER` even though the RP2350 also has
137
+ // `TIMER1`.
138
+ let timer_0 = TIMER ;
136
139
// Switch `SOURCE` to `CLK_SYS` (instead of 1 µs tick)
137
140
timer_0. source ( ) . write ( |w| w. set_clk_sys ( ClkSys :: CLK_SYS ) ) ;
138
141
// Lock configuration--`TIMER0` now read-only (until reset)
You can’t perform that action at this time.
0 commit comments