Skip to content

Commit d3a86cd

Browse files
committed
2 parents 7c53d58 + 757493c commit d3a86cd

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

cores/arduino/HardwareTimer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

cores/arduino/stm32/stm32_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
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 )\

variants/Generic_F103Rx/variant.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)