Skip to content

Instantly share code, notes, and snippets.

// Basic UART usage on the PRU
// This has to run on PRU1 as it seems
// there are only GPIO pins for that PRU
#define PRU0_R31_VEC_VALID 32 // notify program completion
#define PRU_EVTOUT_0 3 // event number sent back
#define UART_BASE_ADDR 0x00028000
#define DLL 0x00028020 // MSB of baud rate divisor
#define DLH 0x00028024 // LSB of baud rate divisor
// Basic UART usage on the PRU
// This has to run on PRU1 as it seems
// there are only GPIO pins for that PRU
#define PRU0_R31_VEC_VALID 32 // notify program completion
#define PRU_EVTOUT_0 3 // event number sent back
#define UART_BASE_ADDR 0x00028000
#define DLL 0x00028020 // MSB of baud rate divisor
#define DLH 0x00028024 // LSB of baud rate divisor