File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,7 +158,11 @@ void HardwareTimer::resume(void)
158158 if (callbacks[0 ] != NULL ) {
159159 __HAL_TIM_CLEAR_FLAG (&(_timerObj.handle ), TIM_FLAG_UPDATE);
160160 __HAL_TIM_ENABLE_IT (&(_timerObj.handle ), TIM_IT_UPDATE);
161+
162+ // Start timer in Time base mode. Required when there is no channel used but only update interrupt.
163+ HAL_TIM_Base_Start (&(_timerObj.handle ));
161164 }
165+
162166 // Resume all channels
163167 resumeChannel (1 );
164168 resumeChannel (2 );
Original file line number Diff line number Diff line change 66 * @brief STM32 core version number
77 */
88#define STM32_CORE_VERSION_MAJOR (0x01U) /*!< [31:24] major version */
9- #define STM32_CORE_VERSION_MINOR (0x08U ) /*!< [23:16] minor version */
9+ #define STM32_CORE_VERSION_MINOR (0x09U ) /*!< [23:16] minor version */
1010#define STM32_CORE_VERSION_PATCH (0x00U) /*!< [15:8] patch version */
1111/*
1212 * Extra label for development:
1313 * 0: official release
1414 * [1-9]: release candidate
1515 * F[0-9]: development
1616 */
17- #define STM32_CORE_VERSION_EXTRA (0x00U ) /*!< [7:0] extra version */
17+ #define STM32_CORE_VERSION_EXTRA (0xF0U ) /*!< [7:0] extra version */
1818#define STM32_CORE_VERSION ((STM32_CORE_VERSION_MAJOR << 24U)\
1919 |(STM32_CORE_VERSION_MINOR << 16U)\
2020 |(STM32_CORE_VERSION_PATCH << 8U )\
Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ WEAK void SystemClock_Config(void)
120120 if (HAL_RCC_ClockConfig (&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) {
121121 Error_Handler ();
122122 }
123- PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USB;
123+ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC | RCC_PERIPHCLK_USB;
124+ PeriphClkInit.AdcClockSelection = RCC_ADCPCLK2_DIV6;
124125 PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_PLL_DIV1_5;
125126 if (HAL_RCCEx_PeriphCLKConfig (&PeriphClkInit) != HAL_OK) {
126127 Error_Handler ();
You can’t perform that action at this time.
0 commit comments