Go to the documentation of this file.
33 #ifndef _STM32_USB_UART_H_
34 #define _STM32_USB_UART_H_
void lf256fifo_remove(struct lf256fifo *fifo)
struct lf256fifo * fifo
Definition: stm32_usb_uart.h:59
void * extra
Definition: no_os_uart.h:127
const struct no_os_uart_platform_ops stm32_usb_uart_ops
stm32 specific UART over USB platform ops structure.
Definition: stm32_usb_uart.c:277
int lf256fifo_init(struct lf256fifo **)
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:54
void stm32_on_usb_cdc_acm_rx(uint8_t *buf, uint32_t len)
Definition: stm32_usb_uart.c:96
int lf256fifo_read(struct lf256fifo *, uint8_t *)
#define no_os_min(x, y)
Definition: no_os_util.h:59
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
void * extra
Definition: no_os_uart.h:147
stm32 platform specific UART over USB descriptor.
Definition: stm32_usb_uart.h:55
USBD_CDC_ItfTypeDef USBD_Interface_fops
Definition: stm32_usb_uart.c:70
Specific initialization parameters for stm32 UART over USB.
Definition: stm32_usb_uart.h:46
USBD_HandleTypeDef * gusbdevice
Definition: stm32_usb_uart.c:52
USBD_HandleTypeDef * husbdevice
Definition: stm32_usb_uart.h:48
#define STM32_USB_CDC_ACM_RXBUF_LEN
Definition: stm32_usb_uart.c:42
int lf256fifo_write(struct lf256fifo *, uint8_t)
SPSC lock-free fifo of fixed size (256), specialized for UART.
USBD_HandleTypeDef * husbdevice
Definition: stm32_usb_uart.h:57
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:69
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
const struct no_os_uart_platform_ops stm32_usb_uart_ops
STM32 platform specific UART platform ops structure.
Definition: stm32_usb_uart.c:277
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:46