PIC24 Support Libraries
|
#include "pic24_clockfreq.h"
#include "pic24_uart.h"
#include "pic24_ports.h"
#include "pic24_unittest.h"
#include "pic24_delay.h"
#include "pic24_util.h"
Go to the source code of this file.
Macros | |
#define | DEFAULT_BRGH1 DEFAULT_BRGH |
Functions | |
void | checkRxErrorUART1 (void) |
void | outChar1 (uint8_t u8_c) |
uint8_t | isCharReady1 (void) |
uint8_t | inChar1 (void) |
void | configUART1 (uint32_t u32_baudRate) |
UART support functions.
Definition in file pic24_uart.c.
#define DEFAULT_BRGH1 DEFAULT_BRGH |
Chose a default BRGH for UART1, used by configUART1 to set up UART1.
Definition at line 234 of file pic24_uart.c.
Referenced by configUART1().
void checkRxErrorUART1 | ( | void | ) |
Check UART1 RX for error, call reportError() if error found.
Definition at line 70 of file pic24_uart.c.
Referenced by inChar1(), and WAIT_UNTIL_TRANSMIT_COMPLETE_UART1().
void configUART1 | ( | uint32_t | u32_baudRate | ) |
Configure the UART. Settings chosen:
u32_baudRate | The baud rate to use. |
Definition at line 250 of file pic24_uart.c.
Referenced by configDefaultUART(), and WAIT_UNTIL_TRANSMIT_COMPLETE_UART1().
uint8_t inChar1 | ( | void | ) |
Wait for a byte to be available from UART1 RX.
Definition at line 214 of file pic24_uart.c.
Referenced by inChar(), outChar1(), and WAIT_UNTIL_TRANSMIT_COMPLETE_UART1().
uint8_t isCharReady1 | ( | void | ) |
Return true if character is ready to be read
Definition at line 206 of file pic24_uart.c.
Referenced by isCharReady(), outChar1(), and WAIT_UNTIL_TRANSMIT_COMPLETE_UART1().
void outChar1 | ( | uint8_t | u8_c | ) |
Output u8_c to UART1 TX.
u8_c | Character to write |
Definition at line 145 of file pic24_uart.c.
Referenced by checkRxErrorUART1(), outChar(), and WAIT_UNTIL_TRANSMIT_COMPLETE_UART1().