#include <cfg/os.h>
#include <cfg/clock.h>
#include <sys/device.h>
#include <sys/timer.h>
#include <string.h>
#include <malloc.h>
#include <dev/irqreg.h>
#include <dev/gpio.h>
#include <sys/event.h>
#include <arch/cm3/cortex_interrupt.h>
#include <arch/cm3/stm/stm32xxxx_rcc.h>
#include <arch/cm3/stm/stm32xxxx_gpio.h>
#include <dev/usb_stm32/stm32_otg.h>
#include <dev/usb_stm32/hw_config.h>
#include <dev/usb_stm32/usb_istr.h>
#include <dev/usb_stm32/usb_init.h>
#include <dev/usb_stm32/usb_prop.h>
#include <dev/usb_stm32/usb_pwr.h>
#include <dev/usb_stm32/usb_sil.h>
#include <dev/usb_stm32/usb_desc.h>
#include <dev/usb_stm32/otgd_fs_dev.h>
#include <dev/usb_stm32/otgd_fs_cal.h>
#include <dev/usb_stm32/otgd_fs_pcd.h>
#include <dev/usart.h>
Defines | |
#define | USART_TXBUFSIZ 0 |
#define | USART_TXHIWMARK 0 |
#define | USART_TXLOWMARK 0 |
#define | USART_RXBUFSIZ 256 |
#define | USART_RXHIWMARK 190 |
#define | USART_RXLOWMARK 128 |
#define | TX_BUF_SIZE 64 |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
void | Stm32Otg_IRQHandler (void *arg) |
void | OTGTimerCallback (HANDLE timer, void *arg) |
void | OTGTimerEvent (void *arg) |
void | EP1_IN_Callback (void) |
void | EP3_OUT_Callback (void) |
Variables | |
uint8_t | buffer_out [VIRTUAL_COM_PORT_DATA_SIZE] |
USB_OTG_PCD_DEV | USB_OTG_PCD_dev |
int | rx_errors = 0 |
LINE_CODING | linecoding |
NUTDEVICE | devStm32Otg |
Stm32Otg device information structure. |
#define USART_TXBUFSIZ 0 |
#define USART_TXHIWMARK 0 |
#define USART_TXLOWMARK 0 |
#define USART_RXBUFSIZ 256 |
#define USART_RXHIWMARK 190 |
#define USART_RXLOWMARK 128 |
#define TX_BUF_SIZE 64 |
#define MIN | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
void Stm32Otg_IRQHandler | ( | void * | arg | ) |
void OTGTimerCallback | ( | HANDLE | timer, |
void * | arg | ||
) |
void OTGTimerEvent | ( | void * | arg | ) |
References NULL, NutEventWait(), and NutThreadSetPriority().
void EP1_IN_Callback | ( | void | ) |
void EP3_OUT_Callback | ( | void | ) |
References EP3_OUT, NutEventPostFromIrq, OTGD_FS_PCD_GetOutEP(), _RINGBUF::rbf_cnt, _RINGBUF::rbf_head, _RINGBUF::rbf_last, _RINGBUF::rbf_que, _RINGBUF::rbf_start, USB_OTG_ep::xfer_buff, and USB_OTG_ep::xfer_len.
uint8_t buffer_out[VIRTUAL_COM_PORT_DATA_SIZE] |
int rx_errors = 0 |
Referenced by Virtual_Com_Port_GetLineCoding(), and Virtual_Com_Port_SetLineCoding().
{ 0, {'u', 's', 'b', '_', 'o', 't', 'g', 0, 0}, IFTYP_CHAR, 0, 0, 0, &dcb_otg0, UsartInit, UsartIOCtl, UsartRead, Stm32OtgWrite, UsartOpen, UsartClose, UsartSize }
Stm32Otg device information structure.