uart_mapping[uart].tx_dma_stream->M0AR = (uint32_t)data;USART_DMACmd( uart_mapping[uart].usart, USART_DMAReq_Tx, ENABLE ); USART_ClearFlag( uart_mapping[uart].usart, USART_FLAG_TC ); DMA_Cmd( uart_mapping[uart].tx_dma_stream, ENABLE );#ifndefNO_MICO_RTOSmico_rtos_get_semaphore(...
void DMA_Configuration(void) { DMA_DeInit(DMA1_Channel6); /* Enable the USART Rx DMA request */ USART_DMACmd(USART2, USART_DMAReq_Tx, ENABLE); DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralSRC; // Receive //DMA_DIR_PeripheralDST DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)read...
uart_mapping[uart].tx_dma_stream->M0AR = (uint32_t)data;USART_DMACmd( uart_mapping[uart].usart, USART_DMAReq_Tx, ENABLE ); USART_ClearFlag( uart_mapping[uart].usart, USART_FLAG_TC ); DMA_Cmd( uart_mapping[uart].tx_dma_stream, ENABLE );#ifndefNO_MICO_RTOSmico_rtos_get_semaphore(...