diff options
| author | guozhanxin <[email protected]> | 2021-06-21 17:05:03 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2021-06-21 17:06:41 +0800 |
| commit | 0849a6061d6dddf26775a0bd649c77eacce3e3d5 (patch) | |
| tree | 3433a1701c1ffaa5dd28f929b4bdf56f719f2cf0 | |
| parent | bccdf912c8f92f1188ed51222909fd01b9553791 (diff) | |
[bsp][stm32] fix LTDC_IRQHandler irq enter bug.
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/drv_lcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_lcd.c b/bsp/stm32/libraries/HAL_Drivers/drv_lcd.c index 5d170016b8..96c61835e6 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_lcd.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_lcd.c @@ -108,11 +108,11 @@ void HAL_LTDC_LineEventCallback(LTDC_HandleTypeDef *hltdc) void LTDC_IRQHandler(void) { - rt_enter_critical(); + rt_interrupt_enter(); HAL_LTDC_IRQHandler(&LtdcHandle); - rt_exit_critical(); + rt_interrupt_leave(); } rt_err_t stm32_lcd_init(struct drv_lcd_device *lcd) |
