This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |