#ifdef debug_uart_log_buf
__log_buf[diag_bp++] = c;
-#endif
-
+#endif
+
CYGARC_HAL_SAVE_GP();
// Wait for Tx FIFO not full
CYGARC_HAL_RESTORE_GP();
}
-static cyg_bool cyg_hal_plf_serial_getc_nonblock(void* __ch_data,
+static cyg_bool cyg_hal_plf_serial_getc_nonblock(void* __ch_data,
cyg_uint8* ch)
{
volatile struct mxc_serial* base = ((channel_data_t*)__ch_data)->base;
CYGARC_HAL_RESTORE_GP();
}
-static void cyg_hal_plf_serial_read(void* __ch_data, cyg_uint8* __buf,
+static void cyg_hal_plf_serial_read(void* __ch_data, cyg_uint8* __buf,
cyg_uint32 __len)
{
CYGARC_HAL_SAVE_GP();
CYGARC_HAL_RESTORE_GP();
}
-cyg_bool cyg_hal_plf_serial_getc_timeout(void* __ch_data,
- cyg_uint8* ch)
+cyg_bool cyg_hal_plf_serial_getc_timeout(void* __ch_data,
+ cyg_uint8* ch)
{
int delay_count;
channel_data_t* chan = (channel_data_t*)__ch_data;
return res;
}
-static int cyg_hal_plf_serial_control(void *__ch_data,
- __comm_control_cmd_t __func, ...)
+static int cyg_hal_plf_serial_control(void *__ch_data,
+ __comm_control_cmd_t __func, ...)
{
static int irq_state = 0;
channel_data_t* chan = (channel_data_t*)__ch_data;