* High density value line devices(STM32F10X_HD_VL). * The DMA mode is not available for UART5 except in the STM32 * This parameter can be: ENABLE or DISABLE. * NewState: new state of the DMA Request sources. * USART_DMAReq_Rx: USART DMA receive request * USART_DMAReq_Tx: USART DMA transmit request * This parameter can be any combination of the following values: * USART_DMAReq: specifies the DMA request. * USART1, USART2, USART3, UART4 or UART5. * This parameter can be one of the following values: * USARTx: Select the USART or the UART peripheral. * Enables or disables the USARTs DMA interface. I dived in the firmware and it seems that you can enable DMA on Serial1 (which is USART2 if I found it right). It would be nice if we could send out DMX data directly from the memory in the background, while the Photon keeps rendering light data. I’m wondering of DMA is supported on Serial1 (the TX/RX outputs on the Photon)? I know it’s implemented for SPI. This seems some interesting pseudo code to transmit DMX by using the default Serial implementation (I suppose the STM32 also support a baudrate setting of 250000?):
0 Comments
Leave a Reply. |