Go to the documentation of this file.
39 #ifndef _STM32_USB_UART_H_
40 #define _STM32_USB_UART_H_
void lf256fifo_remove(struct lf256fifo *fifo)
const struct no_os_uart_platform_ops stm32_usb_uart_ops
stm32 specific UART over USB platform ops structure.
Definition: stm32_usb_uart.c:257
int lf256fifo_init(struct lf256fifo **)
USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
Definition: stm32_usb_uart.c:75
UART over USB driver for stm32 as a no_os_uart implementation.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:60
void stm32_on_usb_cdc_acm_rx(uint8_t *buf, uint32_t len)
Definition: stm32_usb_uart.c:101
int lf256fifo_read(struct lf256fifo *, uint8_t *)
#define no_os_min(x, y)
Definition: no_os_util.h:63
Stucture holding the UART descriptor.
Definition: no_os_uart.h:140
void * extra
Definition: no_os_uart.h:153
USBD_HandleTypeDef hUsbDeviceFS
Definition: stm32_usb_uart.h:51
#define STM32_USB_CDC_ACM_RXBUF_LEN
Definition: stm32_usb_uart.c:48
int lf256fifo_write(struct lf256fifo *, uint8_t)
struct lf256_fifo * fifo
Definition: stm32_usb_uart.h:52
SPSC lock-free fifo of fixed size (256), specialized for UART.
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:75
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:116
const struct no_os_uart_platform_ops stm32_usb_uart_ops
STM32 platform specific UART platform ops structure.
Definition: stm32_usb_uart.c:257
Header file of UART interface.
Header file of utility functions.
Error macro definition for ARM Compiler.
#define STM32_USB_CDC_ACM_TXBUF_LEN
Definition: stm32_usb_uart.c:52