Skip to content

Commit bddce7c

Browse files
committed
Merge pull request #1847 from svastm/pr_1743_continuation
[STM32L0XX] SlaveCounter type correction
2 parents 5764593 + d3c14f6 commit bddce7c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uint32_t PreviousVal = 0;
4040
void us_ticker_irq_handler(void);
4141
void set_compare(uint16_t count);
4242

43-
extern volatile uint32_t SlaveCounter;
43+
extern volatile uint16_t SlaveCounter;
4444
extern volatile uint32_t oc_int_part;
4545
extern volatile uint16_t oc_rem_part;
4646

@@ -138,8 +138,8 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
138138
/**
139139
* @}
140140
*/
141-
141+
142142
/**
143143
* @}
144-
*/
144+
*/
145145
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uint32_t PreviousVal = 0;
4040
void us_ticker_irq_handler(void);
4141
void set_compare(uint16_t count);
4242

43-
extern volatile uint32_t SlaveCounter;
43+
extern volatile uint16_t SlaveCounter;
4444
extern volatile uint32_t oc_int_part;
4545
extern volatile uint16_t oc_rem_part;
4646

@@ -138,8 +138,8 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
138138
/**
139139
* @}
140140
*/
141-
141+
142142
/**
143143
* @}
144-
*/
144+
*/
145145
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ uint32_t PreviousVal = 0;
4040
void us_ticker_irq_handler(void);
4141
void set_compare(uint16_t count);
4242

43-
extern volatile uint32_t SlaveCounter;
43+
extern volatile uint16_t SlaveCounter;
4444
extern volatile uint32_t oc_int_part;
4545
extern volatile uint16_t oc_rem_part;
4646

@@ -138,8 +138,8 @@ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) {
138138
/**
139139
* @}
140140
*/
141-
141+
142142
/**
143143
* @}
144-
*/
144+
*/
145145
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)