Skip to content

Commit

Permalink
Simplified macro bsp_tim_clr_irq
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux authored and Baldanos committed Jan 29, 2020
1 parent 386791f commit 63c42eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/drv/stm32cube/bsp_tim.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ limitations under the License.
do { \
} while (!(TIM4->SR & TIM_SR_UIF))

#define bsp_tim_clr_irq() \
do { \
TIM4->SR &= ~TIM_SR_UIF; \
} while (0)
#define bsp_tim_clr_irq() ( TIM4->SR &= ~TIM_SR_UIF )

/** @defgroup BSP_TIM_ClockDivision clock_division
* @{
Expand Down

0 comments on commit 63c42eb

Please sign in to comment.