48 #undef UARTFIFOLevelGet
49 #define UARTFIFOLevelGet NOROM_UARTFIFOLevelGet
50 #undef UARTConfigSetExpClk
51 #define UARTConfigSetExpClk NOROM_UARTConfigSetExpClk
52 #undef UARTConfigGetExpClk
53 #define UARTConfigGetExpClk NOROM_UARTConfigGetExpClk
55 #define UARTDisable NOROM_UARTDisable
56 #undef UARTCharGetNonBlocking
57 #define UARTCharGetNonBlocking NOROM_UARTCharGetNonBlocking
59 #define UARTCharGet NOROM_UARTCharGet
60 #undef UARTCharPutNonBlocking
61 #define UARTCharPutNonBlocking NOROM_UARTCharPutNonBlocking
63 #define UARTCharPut NOROM_UARTCharPut
64 #undef UARTIntRegister
65 #define UARTIntRegister NOROM_UARTIntRegister
66 #undef UARTIntUnregister
67 #define UARTIntUnregister NOROM_UARTIntUnregister
77 uint32_t *pui32RxLevel)
84 ASSERT(UARTBaseValid(ui32Base));
105 uint32_t ui32Baud, uint32_t ui32Config)
112 ASSERT(UARTBaseValid(ui32Base));
123 ui32Div = (((ui32UARTClk * 8) / ui32Baud) + 1) / 2;
144 uint32_t *pui32Baud, uint32_t *pui32Config)
146 uint32_t ui32Int, ui32Frac;
151 ASSERT(UARTBaseValid(ui32Base));
158 *pui32Baud = (ui32UARTClk * 4) / ((64 * ui32Int) + ui32Frac);
180 ASSERT(UARTBaseValid(ui32Base));
212 ASSERT(UARTBaseValid(ui32Base));
244 ASSERT(UARTBaseValid(ui32Base));
270 ASSERT(UARTBaseValid(ui32Base));
307 ASSERT(UARTBaseValid(ui32Base));
333 ASSERT(UARTBaseValid(ui32Base));
357 ASSERT(UARTBaseValid(ui32Base));
void UARTCharPut(uint32_t ui32Base, uint8_t ui8Data)
Waits to send a character from the specified port.
void UARTConfigSetExpClk(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config)
Sets the configuration of a UART.
void UARTIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Registers an interrupt handler for a UART interrupt.
void UARTDisable(uint32_t ui32Base)
Disables transmitting and receiving.
int32_t UARTCharGetNonBlocking(uint32_t ui32Base)
Receives a character from the specified port.
void UARTConfigGetExpClk(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t *pui32Baud, uint32_t *pui32Config)
Gets the current configuration of a UART.
int32_t UARTCharGet(uint32_t ui32Base)
Waits for a character from the specified port.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
bool UARTCharPutNonBlocking(uint32_t ui32Base, uint8_t ui8Data)
Sends a character to the specified port.
void UARTFIFOLevelGet(uint32_t ui32Base, uint32_t *pui32TxLevel, uint32_t *pui32RxLevel)
Gets the FIFO level at which interrupts are generated.
void UARTIntUnregister(uint32_t ui32Base)
Unregisters an interrupt handler for a UART interrupt.
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.