»
(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...*
(046) Deal with Idle in xxxCpltCallback
在单字节完成中断xxxCpltCallback中断中处理Idle:
if(RESET != __HAL_UART_GET_FLAG(&huartx,UART_FLAG_IDLE)){
__HAL_UART_CLEAR_IDLEFLAG(&huartx);
//以下为业务处理
}
获取DMA已经传输完成的字节数的很有用的函数:__HAL_DMA_GET_COUNTER(&hdma_uartx_rx)