/* Establish a gps over serial. Function blocks until there's a connection. */ void gps_connect(gps_cfg_t *gps_cfg) { uart_init(gps_cfg->uart_conf); uart_set_callback((void*)gps_cfg, gps_rx_cb); DEBUG("Connected to UART%s\n", gps_cfg->uart_conf->device); }
T_VOID Fwl_UartSetCallback(T_fUART_CB callback_func) { #if 1 uart_set_callback(SERIAL_UART, callback_func); #endif }