40 #ifndef USB_TUNNEL_UART
41 #error USB_TUNNEL_UART not defined. Add <configure name="TUNNEL_PORT" value="UARTx"/>
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)
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
void mcu_init(void)
Microcontroller peripherals initialization.
arch independent LED (Light Emitting Diodes) API
static void led_init(void)
Automatic initialization of actived LED Set to OFF at startup.
void uart_put_byte(struct uart_periph *periph, long fd, uint8_t data)
int uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
uint8_t uart_getch(struct uart_periph *p)
Arch independent mcu ( Micro Controller Unit ) utilities.
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
void VCOM_event(void)
Poll usb (required by libopencm3).
int VCOM_getchar(void)
Reads one character from VCOM port.
int VCOM_putchar(int c)
Writes one character to VCOM port fifo.
int VCOM_check_available(void)
Checks if data available in VCOM buffer.
bool VCOM_check_free_space(uint16_t len)
Checks if buffer free in VCOM buffer.
Architecture independent timing functions.
int WEAK uart_check_free_space(struct uart_periph *p, long *fd, uint16_t len)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void VCOM_allow_linecoding(uint8_t mode)
static void tunnel_event(void)
#define BLINK_MIN
minimum LED blink on time in ms
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.