usart/usart_flow.h¶
Handles flow control for USART.
- Date
- 2017/10/15
- Author
- Jamie K. Phan
Functions
-
int
usart_cts_status
(void)¶ Interface into vars (try to keep that private!)
- Return
- 1 if clear to send
-
void
usart_mode4_flow
(int, int)¶ Implements the necessary flow control for the USART.
- Return
- 0 on success, 1 on failure
- Parameters
direction
: The direction of the flow (DP to DN) or (DN to DP). Ensure Pre-processor macros are used to ensure portabilityvalue
: The flow to be handled; either (assert) or (deassert)
-
void
update_port_usart
(void)¶ Updates the port values based on the uart_vars. This is to ensure resources are shared correctly.