mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
HAL_ChibiOS: fixed build of iomcu firmware
This commit is contained in:
parent
ee4acb44db
commit
63f39c2bd6
@ -233,8 +233,8 @@ static void main_loop()
|
||||
pd.fault_thd_prio,
|
||||
pd.fault_icsr);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif // HAL_NO_LOGGING
|
||||
#endif // IOMCU_FW
|
||||
|
||||
schedulerInstance.watchdog_pat();
|
||||
|
||||
|
@ -43,30 +43,22 @@
|
||||
#define STM32_PPRE1 STM32_PPRE1_DIV2
|
||||
#define STM32_PPRE2 STM32_PPRE2_DIV2
|
||||
#define STM32_ADCPRE STM32_ADCPRE_DIV4
|
||||
#elif STM32_HSECLK == 24000000U
|
||||
#define STM32_SW STM32_SW_HSE
|
||||
#define STM32_PLLSRC STM32_PLLSRC_HSE
|
||||
#define STM32_PLLXTPRE STM32_PLLXTPRE_DIV1
|
||||
#define STM32_PLLMUL_VALUE 9
|
||||
#define STM32_PPRE1 STM32_PPRE1_DIV1
|
||||
#define STM32_PPRE2 STM32_PPRE2_DIV1
|
||||
#define STM32_ADCPRE STM32_ADCPRE_DIV2
|
||||
#else
|
||||
#error "Unsupported STM32F1xx clock frequency"
|
||||
#endif
|
||||
|
||||
#ifndef STM32_SW
|
||||
#define STM32_SW STM32_SW_HSE
|
||||
#endif
|
||||
|
||||
#ifndef STM32_HPRE
|
||||
#define STM32_HPRE STM32_HPRE_DIV1
|
||||
#endif
|
||||
|
||||
#ifndef STM32_PPRE1
|
||||
#define STM32_PPRE1 STM32_PPRE1_DIV1
|
||||
#endif
|
||||
|
||||
#ifndef STM32_PPRE2
|
||||
#define STM32_PPRE2 STM32_PPRE2_DIV1
|
||||
#endif
|
||||
|
||||
#ifndef STM32_ADCPRE
|
||||
#define STM32_ADCPRE STM32_ADCPRE_DIV2
|
||||
#endif
|
||||
|
||||
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
|
||||
#define STM32_RTCSEL STM32_RTCSEL_HSEDIV
|
||||
#define STM32_PVD_ENABLE FALSE
|
||||
|
Loading…
Reference in New Issue
Block a user