40 #ifndef USB_TUNNEL_UART
41 #error USB_TUNNEL_UART not defined. Add <configure name="TUNNEL_PORT" value="UARTx"/>
44 PRINT_CONFIG_VAR(USB_TUNNEL_UART)
46 PRINT_CONFIG_VAR(TUNNEL_RX_LED)
47 PRINT_CONFIG_VAR(TUNNEL_TX_LED)
56 #if LED_AVAILABLE(TUNNEL_RX_LED)
62 #if LED_AVAILABLE(TUNNEL_TX_LED)
70 #if LED_AVAILABLE(TUNNEL_RX_LED)
78 #if LED_AVAILABLE(TUNNEL_TX_LED)
static uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
uint16_t uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
Architecture independent timing functions.
int VCOM_getchar(void)
Reads one character from VCOM port.
static void led_init(void)
static void tunnel_event(void)
bool_t uart_check_free_space(struct uart_periph *p, uint8_t len)
uint8_t uart_getch(struct uart_periph *p)
Arch independent mcu ( Micro Controller Unit ) utilities.
arch independent LED (Light Emitting Diodes) API
int VCOM_putchar(int c)
Writes one character to VCOM port.
bool_t VCOM_check_free_space(uint8_t len)
Checks if buffer free in VCOM buffer.
void VCOM_allow_linecoding(uint8_t mode)
int VCOM_check_available(void)
Checks if data available in VCOM buffer.
void uart_put_byte(struct uart_periph *periph, uint8_t data)
#define BLINK_MIN
minimum LED blink on time in ms