Sensor Watch 0.0.2
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
|
This section covers functions related to the UART peripheral. More...
Functions | |
void | watch_enable_uart (const uint8_t tx_pin, const uint8_t rx_pin, uint32_t baud) |
Initializes the debug UART. | |
void | watch_uart_puts (char *s) |
Transmits a string of bytes on the UART's TX pin. | |
char | watch_uart_getc (void) |
Receives a single byte from the UART's RX pin. | |
This section covers functions related to the UART peripheral.
void watch_enable_uart | ( | const uint8_t | tx_pin, |
const uint8_t | rx_pin, | ||
uint32_t | baud | ||
) |
Initializes the debug UART.
tx_pin | The pin the watch will use to transmit, or 0 for a receive-only UART. If specified, must be either A2 or A4. |
rx_pin | The pin the watch will use to receive, or 0 for a transmit-only UART. If specified, must be A1, A2, A3 or A4 (pin A0 cannot receive UART data). |
baud | The baud rate for the UART. A typical value is 19200. |
char watch_uart_getc | ( | void | ) |
Receives a single byte from the UART's RX pin.
void watch_uart_puts | ( | char * | s | ) |
Transmits a string of bytes on the UART's TX pin.
s | A null-terminated string containing the bytes you wish to transmit. |