mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:13:34 +08:00
rddrone-uavcan146 removed shared clock between hrt & rtc
Removed non-existing SW2 button Fixed SW3 button pinmux Added FlexCAN pin definition hrt use external sirc clock rtc use 32khz lpo clock
This commit is contained in:
committed by
David Sidrane
parent
eb1bad0185
commit
9490f41f85
@@ -312,7 +312,7 @@ static void hrt_tim_init(void)
|
||||
|
||||
/* Use FIXEDCLK src and enable the timer
|
||||
* Set calculate prescaler for HRT_TIMER_FREQ */
|
||||
rSC |= (FTM_SC_TOIE | FTM_SC_CLKS_FIXED |
|
||||
rSC |= (FTM_SC_TOIE | FTM_SC_CLKS_EXTCLK |
|
||||
(LOG_2(HRT_TIMER_CLOCK / HRT_TIMER_FREQ) << FTM_SC_PS_SHIFT
|
||||
& FTM_SC_PS_MASK));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user