Pages: [1]   Go Down
Author Topic: USART with PDC (DMA).  (Read 50 times)
0 Members and 1 Guest are viewing this topic.
Montreal
Offline Offline
Faraday Member
**
Karma: 30
Posts: 2602
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
/*
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?
Logged

Pages: [1]   Go Up
Jump to: