mirror of https://github.com/rusefi/ChibiOS.git
Implemented Vitaly's proposal on default clock points.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14391 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
8b9031083f
commit
da9a06d3c3
|
@ -103,7 +103,18 @@ const halclkcfg_t hal_clkcfg_default = {
|
|||
/**
|
||||
* @brief Dynamic clock points for this device.
|
||||
*/
|
||||
static halfreq_t clock_points[CLK_ARRAY_SIZE];
|
||||
static halfreq_t clock_points[CLK_ARRAY_SIZE] = {
|
||||
[CLK_SYSCLK] = STM32_SYSCLK,
|
||||
[CLK_PLLPCLK] = STM32_PLL_P_CLKOUT,
|
||||
[CLK_PLLQCLK] = STM32_PLL_Q_CLKOUT,
|
||||
[CLK_PLLRCLK] = STM32_PLL_R_CLKOUT,
|
||||
[CLK_HCLK] = STM32_HCLK,
|
||||
[CLK_PCLK1] = STM32_PCLK1,
|
||||
[CLK_PCLK1TIM] = STM32_TIMP1CLK,
|
||||
[CLK_PCLK2] = STM32_PCLK2,
|
||||
[CLK_PCLK2TIM] = STM32_TIMP2CLK,
|
||||
[CLK_MCO] = STM32_MCOCLK,
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Type of a structure representing system limits.
|
||||
|
@ -494,12 +505,6 @@ bool hal_lld_clock_raw_switch(const halclkcfg_t *ccp) {
|
|||
*/
|
||||
void hal_lld_init(void) {
|
||||
|
||||
#if defined(HAL_LLD_USE_CLOCK_MANAGEMENT)
|
||||
if (hal_lld_clock_check_tree(&hal_clkcfg_default)) {
|
||||
osalSysHalt("clkcfg");
|
||||
}
|
||||
#endif
|
||||
|
||||
/* DMA subsystems initialization.*/
|
||||
#if defined(STM32_DMA_REQUIRED)
|
||||
dmaInit();
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** Next ***
|
||||
- NEW: STM32 USARTv2, USARTv3, USBv1 updated for dynamic clocking.
|
||||
- NEW: STM32 ADCv3, USARTv2, USARTv3, USBv1 updated for dynamic clocking.
|
||||
- NEW: Dynamic support implemented for STM32G4xx.
|
||||
- NEW: Dynamic clocks support in HAL.
|
||||
- NEW: Reload feature added to RT virtual timers.
|
||||
|
|
Loading…
Reference in New Issue