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 #if (HARDWARE_PLATFORM == EMBEDDED_C1) 109 # warning Building configUART1() for the Rev.C1 Embedded Systems target. 114 #elif (HARDWARE_PLATFORM == EMBEDDED_F14) 115 # warning Building configUART1() for the Rev.F14 Embedded Systems target. 134 _U1RXIP = __ESOS_UART1_RX_INTERRUPT_PRIORITY;
139 _U1RXIP = __ESOS_UART1_TX_INTERRUPT_PRIORITY;
160 void __esos_hw_InitCommSystem(
void) {
191 return ESOS_SERIAL_OUT_EP_SIZE;
219 return ESOS_SERIAL_IN_EP_SIZE;
238 uint8_t _esos_hw_GetSerialUartVersion(
void) {
239 return ESOS_COMM_SYS_SERIAL_REV;
#define CONFIG_RC8_AS_DIG_OUTPUT()
This file contains macros, prototypes, and definitions for Microchip PIC24 Family specific communicat...
static void CONFIG_PDSEL_UART1(uint8_t u8_pdsel)
#define CONFIG_RB12_AS_DIG_INPUT()
static void ENABLE_UART1()
uint8_t esos_GetCommSystemMaxInDataLen(void)
#define CONFIG_U1RX_TO_RP(pin)
#define CONFIG_RF0_AS_DIG_OUTPUT()
void __esos_configUART1(uint32_t u32_baudRate)
static void CONFIG_BAUDRATE_UART1(uint32_t baudRate)
#define CONFIG_RB11_AS_DIG_OUTPUT()
uint8_t esos_GetCommSystemMaxOutDataLen(void)
#define CONFIG_RB10_AS_DIG_INPUT()
static void CONFIG_STOPBITS_UART1(uint8_t u8_numStopbits)
#define CONFIG_U1TX_TO_RP(Rxy_RP)
unsigned char uint8_t
An abbreviation for an 8-bit unsigned integer.