These UART macros are reservations for UART.h
#define UART_CMD_RESERVED 32 |
Common UART_control command code reservation offset. UART driver implementations should offset command codes with UART_CMD_RESERVED growing positively
Example implementation specific command codes:
1 #define UARTXYZ_CMD_COMMAND0 UART_CMD_RESERVED + 0
2 #define UARTXYZ_CMD_COMMAND1 UART_CMD_RESERVED + 1
#define UART_STATUS_RESERVED -32 |
Common UART_control status code reservation offset. UART driver implementations should offset status codes with UART_STATUS_RESERVED growing negatively.
Example implementation specific status codes:
1 #define UARTXYZ_STATUS_ERROR0 UART_STATUS_RESERVED - 0
2 #define UARTXYZ_STATUS_ERROR1 UART_STATUS_RESERVED - 1
3 #define UARTXYZ_STATUS_ERROR2 UART_STATUS_RESERVED - 2