Go Down

Topic: USART with PDC (DMA). (Read 136 times) previous topic - next topic

Magician

I have a project, where  I need an array of bytes send repeatedly over BT. For now I'm using Serial_1 , and it takes ~10 milliseconds to transmit 500 bytes at 460.800 ksps. 
So, idea to switch serial in  PDC mode  looks only an option if I need send more in less time.
I couldn't find a library, probably it doesn't exist yet,  so I tried to do some experiments, and all works well except one things, USART0_Hanler().  Compiler reports dublicate in variant.cpp

Here is a question:
Code: [Select]
/*
void USART0_Handler(void)
{
  Serial1.IrqHandler();
}
*/
I commented out this function, is there a better, clean way to "loose" one of the serial in arduino environment?

Go Up