Shield Code 6.0
|
Header file for the PDC library for Dartmouth's 317 Lab. More...
#include <Arduino.h>
Go to the source code of this file.
Classes | |
class | PDC |
Manages UART transmits through peripheral DMA controller (PDC). More... | |
Macros | |
#define | UART_BASE 0x400E0800 |
#define | UART_PERIPH_TPR_ADDR (UART_BASE + 0x108) |
#define | UART_PERIPH_TCR_ADDR (UART_BASE + 0x10C) |
#define | UART_PERIPH_TNPR_ADDR (UART_BASE + 0x118) |
#define | UART_PERIPH_TNCR_ADDR (UART_BASE + 0x11C) |
#define | UART_PERIPH_PTCR_ADDR (UART_BASE + 0x120) |
#define | UART_PERIPH_PTSR_ADDR (UART_BASE + 0x124) |
#define | UART_SR (UART_BASE + 0x0014) |
#define | TXTEN (1<<8) |
#define | TXBUFE (1<<11) |
Header file for the PDC library for Dartmouth's 317 Lab.
This library is used to manage UART communication on the Arduino Due using the Peripheral DMA Controller (PDC). This allows for non-blocking communication, so that we can run other processes while sending out data. Note for future developers - any data array sent through this library must be a global variable. If the variable goes out of scope before the transfer is complete, the data will be lost. Author: Sean Wallace Date: 2024-07-08
Definition in file PDC.hpp.