GlobLib
HAL and API libraries for MCUs and hardware.
|
Initialization routines for FIF08, USART and STRING11. More...
Files | |
file | coms128.h |
Header file for COMS128. | |
Macros | |
#define | TX_SIZE 128 |
Size of the memory buffer used by FIFO8. | |
#define | COMS(X) USART_setTxISR(X,COMOUT_con128(USART_add_put(X))) |
Macro function for simpler initialization. More... | |
Typedefs | |
typedef void(* | ret_point) (void) |
Return function pointer type for COMOUT_con128. | |
Functions | |
ret_point | COMOUT_con128 (void(*put)(uint8_t)) |
Initializes FIFO8 and STRING11. More... | |
Initialization routines for FIF08, USART and STRING11.
This module connects the STRING11 module to FIF8 and the passed USART object.
This provides serial communication to a terminal with a software buffer.
Sets up FIFO8 with the following
Sets up STRING11 to output into FIFO8 object
#define COMS | ( | X | ) | USART_setTxISR(X,COMOUT_con128(USART_add_put(X))) |
ret_point COMOUT_con128 | ( | void(*)(uint8_t) | put | ) |
Initializes FIFO8 and STRING11.
Sets up FIFO8 with the following
Sets up STRING11 to output into FIFO8 object
put | Pointer to the USART put() function. |