File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/rp2_common/hardware_powman Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ void powman_timer_set_1khz_tick_source_lposc_with_hz(uint32_t lposc_freq_hz) {
69
69
bool was_running = powman_timer_is_running ();
70
70
if (was_running ) powman_timer_stop ();
71
71
uint32_t lposc_freq_khz = lposc_freq_hz / 1000 ;
72
- uint32_t lposc_freq_khz_frac16 = (lposc_freq_khz % 1000 ) * 65536 / 1000 ;
72
+ uint32_t lposc_freq_khz_frac16 = (lposc_freq_hz % 1000 ) * 65536 / 1000 ;
73
73
powman_write (& powman_hw -> lposc_freq_khz_int , lposc_freq_khz );
74
74
powman_write (& powman_hw -> lposc_freq_khz_frac , lposc_freq_khz_frac16 );
75
75
powman_set_bits (& powman_hw -> timer , POWMAN_TIMER_USE_LPOSC_BITS );
@@ -87,7 +87,7 @@ void powman_timer_set_1khz_tick_source_xosc_with_hz(uint32_t xosc_freq_hz) {
87
87
bool was_running = powman_timer_is_running ();
88
88
if (was_running ) powman_timer_stop ();
89
89
uint32_t xosc_freq_khz = xosc_freq_hz / 1000 ;
90
- uint32_t xosc_freq_khz_frac16 = (xosc_freq_khz % 1000 ) * 65536 / 1000 ;
90
+ uint32_t xosc_freq_khz_frac16 = (xosc_freq_hz % 1000 ) * 65536 / 1000 ;
91
91
powman_write (& powman_hw -> xosc_freq_khz_int , xosc_freq_khz );
92
92
powman_write (& powman_hw -> xosc_freq_khz_frac , xosc_freq_khz_frac16 );
93
93
powman_set_bits (& powman_hw -> timer , POWMAN_TIMER_USE_XOSC_BITS );
You can’t perform that action at this time.
0 commit comments