49 #define __ESOS_HW_SIGNAL_START_TX() _U1TXIE = 1
50 #define __ESOS_HW_SIGNAL_STOP_TX() _U1TXIE = 0
55 inline void __esos_hw_signal_start_tx(
void) {
56 __ESOS_HW_SIGNAL_START_TX();
59 inline void __esos_hw_signal_stop_tx(
void) {
60 __ESOS_HW_SIGNAL_STOP_TX();
66 void _ISRFAST _U1TXInterrupt (
void) {
67 if (__st_TxBuffer.u16_Head == __st_TxBuffer.u16_Tail) {
69 __ESOS_HW_SIGNAL_STOP_TX();
72 __st_TxBuffer.u16_Tail++;
73 if (__st_TxBuffer.u16_Tail == ESOS_SERIAL_IN_EP_SIZE)
74 __st_TxBuffer.u16_Tail = 0;
77 U1TXREG = __st_TxBuffer.pau8_Data[__st_TxBuffer.u16_Tail];
81 void _ISRFAST _U1RXInterrupt (
void) {
89 __st_RxBuffer.u16_Head++;
90 if (__st_RxBuffer.u16_Head == ESOS_SERIAL_OUT_EP_SIZE)
91 __st_RxBuffer.u16_Head = 0;
93 __st_RxBuffer.pau8_Data[__st_RxBuffer.u16_Head] = u8_c;
108 CONFIG_RP10_AS_DIG_PIN();
119 _U1RXIP = __ESOS_UART1_RX_INTERRUPT_PRIORITY;
124 _U1RXIP = __ESOS_UART1_TX_INTERRUPT_PRIORITY;
145 void __esos_hw_InitCommSystem(
void) {
176 return ESOS_SERIAL_OUT_EP_SIZE;
204 return ESOS_SERIAL_IN_EP_SIZE;
223 uint8 _esos_hw_GetSerialUartVersion(
void) {
224 return ESOS_COMM_SYS_SERIAL_REV;