Skip to content

Commit 59dda5c

Browse files
authored
Merge pull request #1142 from fpistm/Update_L1
Update STM32L1 HAL and CMSIS drivers
2 parents 5cd6cbb + 5529c93 commit 59dda5c

File tree

115 files changed

+4847
-15211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+4847
-15211
lines changed

CI/utils/patch/HAL/L1/0001-L1-I2C-HAL-fix-generate-Start-only-once-Stop-is-fini.patch

-146
This file was deleted.

cores/arduino/HardwareTimer.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ void HardwareTimer::pause()
115115
/* Starting from G4, new Channel state implementation prevents to restart a channel,
116116
if the channel has not been explicitly be stopped with HAL interface */
117117
TIM_CHANNEL_STATE_SET_ALL(&(_timerObj.handle), HAL_TIM_CHANNEL_STATE_READY);
118+
#endif
119+
#if defined(TIM_CHANNEL_N_STATE_SET_ALL)
118120
TIM_CHANNEL_N_STATE_SET_ALL(&(_timerObj.handle), HAL_TIM_CHANNEL_STATE_READY);
119121
#endif
120122
}
@@ -144,9 +146,12 @@ void HardwareTimer::pauseChannel(uint32_t channel)
144146
#if defined(TIM_CHANNEL_STATE_SET)
145147
/* Starting from G4, new Channel state implementation prevents to restart a channel,
146148
if the channel has not been explicitly be stopped with HAL interface */
149+
#if defined(TIM_CHANNEL_N_STATE_SET)
147150
if (isComplementaryChannel[channel - 1]) {
148151
TIM_CHANNEL_N_STATE_SET(&(_timerObj.handle), getChannel(channel), HAL_TIM_CHANNEL_STATE_READY);
149-
} else {
152+
} else
153+
#endif
154+
{
150155
TIM_CHANNEL_STATE_SET(&(_timerObj.handle), getChannel(channel), HAL_TIM_CHANNEL_STATE_READY);
151156
}
152157
#endif

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_exti.c

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#ifdef STM32H7xx
2626
#include "stm32h7xx_hal_exti.c"
2727
#endif
28+
#ifdef STM32L1xx
29+
#include "stm32l1xx_hal_exti.c"
30+
#endif
2831
#ifdef STM32L4xx
2932
#include "stm32l4xx_hal_exti.c"
3033
#endif

0 commit comments

Comments
 (0)