42 #ifndef P33C_MPUART_SFR_ABSTRACTION_H 43 #define P33C_MPUART_SFR_ABSTRACTION_H 83 #ifndef P33C_UART_INSTANCE_s 91 struct tagU1MODEHBITS
bits;
186 } __attribute__((packed));
190 #define P33C_UART_SFR_START_ADDR (volatile uint16_t)&U1MODE 191 #define P33C_UARTPORT_SFR_OFFSET ((volatile uint16_t)&U2MODE - (volatile uint16_t)&U1MODE) 195 #define P33C_UART_COUNT 8 197 #elif defined (U7MODE) 198 #define P33C_UART_COUNT 7 200 #elif defined (U6MODE) 201 #define P33C_UART_COUNT 6 203 #elif defined (U5MODE) 204 #define P33C_UART_COUNT 5 206 #elif defined (U4MODE) 207 #define P33C_UART_COUNT 4 209 #elif defined (U3MODE) 210 #define P33C_UART_COUNT 3 212 #elif defined (U2MODE) 213 #define P33C_UART_COUNT 2 215 #elif defined (U1MODE) 216 #define P33C_UART_COUNT 1 221 extern volatile uint16_t* p33c_MpUartPort_Handles[];
222 #define p33c_MpUartPort_GetHandle(x) (struct P33C_UART_INSTANCE_s*)p33c_MpUartPort_Handles[(x-1)] 234 extern volatile uint16_t p33c_MpUartPort_GetInstance(
volatile struct P33C_UART_INSTANCE_s* uart);
235 extern volatile struct P33C_UART_INSTANCE_s p33c_MpUartPortConfigRead(volatile uint16_t uartInstance);
236 extern volatile uint16_t p33c_MpUartPort_ConfigWrite(
volatile uint16_t uartInstance,
240 extern volatile uint16_t p33c_MpUartPort_Initialize(
volatile uint16_t uartInstance);
241 extern volatile uint16_t p33c_MpUartPort_Dispose(
volatile uint16_t uartInstance);
union P33C_UART_INSTANCE_s::@150 UxSTAH
union P33C_UART_INSTANCE_s::@155 UxP1
union P33C_UART_INSTANCE_s::@148 UxMODEH
union P33C_UART_INSTANCE_s::@163 UxINT
union P33C_UART_INSTANCE_s::@156 UxP2
union P33C_UART_INSTANCE_s::@151 UxBRG
union P33C_UART_INSTANCE_s::@147 UxMODE
union P33C_UART_INSTANCE_s::@160 UxRXCHK
union P33C_UART_INSTANCE_s::@162 UxSCINT
union P33C_UART_INSTANCE_s::@161 UxSCCON
union P33C_UART_INSTANCE_s::@157 UxP3
union P33C_UART_INSTANCE_s::@149 UxSTA
union P33C_UART_INSTANCE_s::@153 UxRXREG
union P33C_UART_INSTANCE_s::@152 UxBRGH
struct tagU1MODEBITS bits
union P33C_UART_INSTANCE_s::@158 UxP3H
union P33C_UART_INSTANCE_s::@159 UxTXCHK
union P33C_UART_INSTANCE_s::@154 UxTXREG