IRPyro messaging application
Communications program between IRPyro and IRPyro evaluation tool
|
USART IRQ, Get and Put char into reception and transmission queues. More...
Functions | |
uint8_t | message_getchar (uint8_t *c) |
Gets a character from the receive queue. More... | |
void | message_putchar (uint8_t c, uint8_t go_flag) |
sends a character to the transmission queue and enables TX interrupt More... | |
void | queue_get_data (void) |
interrupt handler for USART 2 More... | |
void | queue_handle_enable (void) |
void | queue_send_data (void) |
USART IRQ, Get and Put char into reception and transmission queues.
* *
uint8_t message_getchar | ( | uint8_t * | c | ) |
Gets a character from the receive queue.
c | pointer to a byte |
Definition at line 114 of file queue_handle.c.
void message_putchar | ( | uint8_t | c, |
uint8_t | go_flag | ||
) |
sends a character to the transmission queue and enables TX interrupt
c | byte to the transmission queue |
go_flag | signals transmission can begin |
Definition at line 125 of file queue_handle.c.
void queue_get_data | ( | void | ) |
interrupt handler for USART 2
* Uart_Rx_Buffer and Uart_Tx_Buffer are the two queue affected by this function * On a hardware interrupt a byte will be queued into Uart_Rx_Buffer * On a software interrupt a byte will be queued into Uart_Tx_Buffer *
Definition at line 72 of file queue_handle.c.
void queue_handle_enable | ( | void | ) |
Definition at line 102 of file queue_handle.c.
void queue_send_data | ( | void | ) |
Definition at line 86 of file queue_handle.c.