1.1 --- a/pic32_c.h Wed Oct 17 13:38:01 2018 +0200
1.2 +++ b/pic32_c.h Wed Oct 17 17:40:05 2018 +0200
1.3 @@ -22,6 +22,11 @@
1.4 #define PHYSICAL(addr) (((uint32_t) addr) - KSEG0_BASE)
1.5 #define HW_PHYSICAL(addr) (((uint32_t) addr) - KSEG1_BASE)
1.6
1.7 +/* Register collection access. */
1.8 +
1.9 +#define DMA_REG(channel, reg) (DCHBASE + reg + (channel - DCHMIN) * DCHSTEP)
1.10 +#define UART_REG(channel, reg) (UARTBASE + reg + (channel - UARTMIN) * UARTSTEP)
1.11 +
1.12 #endif /* __PIC32_C_H__ */
1.13
1.14 #endif /* __ASSEMBLER__ */