»
(008) CubeIDE Implementation of USB Peripherals*
(018) C99 pointer*
(019) C99 With only value assignment*
(022) POSIX pthread multi-threads mutex*
(023) POSIX pthread multi-threads programming*
(027) C99 time and wait*
(028) High-precision calculation with GMP*
(029) Web Service Lib*
(030) International Components for Unicode (ICU)*
(031) Performance of C is higher than C++, because...*
(044) STM32 Clear Flag of TCx in DMA IRQ
在中断处理函数中,DMA Channel的中断处理函数需要清零DMA_FLAG_TCx标记位:
void DMA1_Channel5_IRQHandler(){
if(__HAL_DMA_GET_FLAG(&hdma_usart1_rx,DMA_FLAG_TC5)){
__HAL_DMA_CLEAR_FLAG(&hdma_usart1_rx,DMA_FLAG_TC5);
//以下为业务处理,比如V操作FreeRTOS的信号量
}
}