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)
79 #if LED_AVAILABLE(TUNNEL_TX_LED)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
uint8_t uart_getch(struct uart_periph *p)
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
Architecture independent timing functions.
bool VCOM_check_free_space(uint16_t len)
Checks if buffer free in VCOM buffer.
int VCOM_getchar(void)
Reads one character from VCOM port.
static void led_init(void)
Automatic initialization of actived LED Set to OFF at startup.
static void tunnel_event(void)
int uart_check_free_space(struct uart_periph *p, long *fd, uint16_t len)
void uart_put_byte(struct uart_periph *p, long fd, uint8_t data)
Uart transmit implementation.
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.
void VCOM_allow_linecoding(uint8_t mode)
int VCOM_check_available(void)
Checks if data available in VCOM buffer.
int uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
#define BLINK_MIN
minimum LED blink on time in ms