![]() |
RTEMS 6.3
|
This group contains the APBUART interfaces. More...
Topics | |
| UART FIFO debug register (FIFO) | |
| This group contains register bit definitions. | |
| UART control register (CTRL) | |
| This group contains register bit definitions. | |
| UART data register (DATA) | |
| This group contains register bit definitions. | |
| UART scaler reload register (SCALER) | |
| This group contains register bit definitions. | |
| UART status register (STATUS) | |
| This group contains register bit definitions. | |
Files | |
| file | bsps/include/grlib/apbuart-regs.h |
| This header file defines the APBUART register block interface. | |
| file | bsps/include/grlib/apbuart.h |
| This header file defines the APBUART interface. | |
| file | bsps/shared/grlib/uart/apbuart_polled.c |
| This source file contains the implementation of apbuart_outbyte_wait(), apbuart_outbyte_polled(), and apbuart_inbyte_nonblocking(). | |
Data Structures | |
| struct | apbuart |
| This structure defines the APBUART register block memory map. More... | |
Typedefs | |
| typedef struct apbuart | apbuart |
| This structure defines the APBUART register block memory map. | |
Functions | |
| int | apbuart_inbyte_nonblocking (apbuart *regs) |
| Clears all errors and tries to get one character from the receiver FIFO. | |
| void | apbuart_outbyte_polled (apbuart *regs, char ch) |
| Waits until an empty transmitter FIFO was observed and then stores the character to the data register. | |
| void | apbuart_outbyte_wait (const apbuart *regs) |
| Ensures that at least once an empty transmitter FIFO was observed. | |
This group contains the APBUART interfaces.
| int apbuart_inbyte_nonblocking | ( | apbuart * | regs | ) |
Clears all errors and tries to get one character from the receiver FIFO.
| regs | is the pointer to the APBUART register block. |
| -1 | The receiver FIFO was empty. |
| void apbuart_outbyte_polled | ( | apbuart * | regs, |
| char | ch ) |
Waits until an empty transmitter FIFO was observed and then stores the character to the data register.
| regs | is the pointer to the APBUART register block. |
| ch | is the character to output. |
| void apbuart_outbyte_wait | ( | const apbuart * | regs | ) |
Ensures that at least once an empty transmitter FIFO was observed.
| regs | is the pointer to the APBUART register block. |