DMA_InitStructure.DMA_Mode = DMA_Mode_Circular; DMA_InitStructure.DMA_Priority = DMA_Priority_High; DMA_InitStructure.DMA_M2M = DMA_M2M_Disable; DMA_Init(DMA1_Channel6, &DMA_InitStructure);USART_DMACmd(USART2, USART_DMAReq_Rx, ENABLE); DMA_ITConfig(DMA1_Channel6, DMA_IT_TC, ENABLE); ...
tx_dma_stream, DISABLE ); USART_DMACmd( uart_mapping[uart].usart, USART_DMAReq_Tx, DISABLE ); MicoMcuPowerSaveConfig(true); return uart_interfaces[uart].tx_dma_result; //#endif } Example #2 0 Show file File: usart.c Project: lennytraviano/quadrocopter void DMA_Configuration(void)...
DMA_InitStructure.DMA_Mode = DMA_Mode_Circular; DMA_InitStructure.DMA_Priority = DMA_Priority_High; DMA_InitStructure.DMA_M2M = DMA_M2M_Disable; DMA_Init(DMA1_Channel6, &DMA_InitStructure);USART_DMACmd(USART2, USART_DMAReq_Rx, ENABLE); DMA_ITConfig(DMA1_Channel6, DMA_IT_TC, ENABLE); ...