Functions | |
uint8_t | serial_bridge_init (void) |
This module performs serial input/output functionalities via UART. More... | |
void | serial_bridge_task (void) |
Bridges the UARTS. More... | |
void | platform_dtm_interface_receive (uint8_t rx_data) |
void platform_dtm_interface_receive | ( | uint8_t | rx_data | ) |
References platform_start_rx(), and ser_fifo_push_uint8().
Referenced by ble_init().
uint8_t serial_bridge_init | ( | void | ) |
This module performs serial input/output functionalities via UART.
Initializes the Serial IO Module
References usart_config::baudrate, ble_eusart_rx_buf, ble_eusart_tx_buf, ble_usart_rx_buf, ble_usart_tx_buf, eusart_instance, GCLK_GENERATOR_0, usart_config::generator_source, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, rx_edata, ser_fifo_init(), serial_drv_edbg_read_cb(), serial_drv_edbg_write_cb(), serial_eread_byte(), STATUS_OK, USART_CALLBACK_BUFFER_RECEIVED, USART_CALLBACK_BUFFER_TRANSMITTED, usart_enable(), usart_enable_callback(), usart_get_config_defaults(), usart_init(), and usart_register_callback().
Referenced by main().
void serial_bridge_task | ( | void | ) |
Bridges the UARTS.
Takes | the data from one USART Rx to other USART Tx and vice versa |
References eusart_instance, g_etxdata, g_txdata, SER_FIFO_OK, ser_fifo_pull_uint8(), ser_fifo_push_uint8(), STATUS_OK, usart_get_job_status(), usart_instance, USART_TRANSCEIVER_TX, and usart_write_job().
Referenced by main().