#include "board.h"
#include <USBD_Config.h>
#include <DUALCDCDDriver.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
Detailed Description
This file contains all the specific code for the usb_iad_cdc_cdc
Definition in file main.c.
Define Documentation
#define BASE_USART USART1 |
Register base for USART operation
Definition at line 139 of file main.c.
#define DATABUFFERSIZE (DATAPACKETSIZE+2) |
Size in bytes of the buffer used for reading data from the USB & USART
Definition at line 134 of file main.c.
#define DATAPACKETSIZE CHIP_USB_ENDPOINTS_MAXPACKETSIZE(CDCDSerialDriverDescriptors_DATAIN) |
Size in bytes of the packet used for reading data from USB
Definition at line 130 of file main.c.
#define ID_USART ID_USART1 |
USART ID
Definition at line 141 of file main.c.
#define PINS_USART PIN_USART1_TXD, PIN_USART1_RXD |
Pins used for USART transfer
Definition at line 137 of file main.c.
Function Documentation
Initializes drivers and start the USB Dual CDC device.
Definition at line 600 of file main.c.
Invoked when a new SETUP request is received from the host. Forwards the request to the Mass Storage device driver handler function.
- Parameters:
-
Definition at line 205 of file main.c.
void USBDDriverCallbacks_ConfigurationChanged |
( |
uint8_t |
cfgnum |
) |
|
Invoked when the configuration of the device changes. Parse used endpoints.
- Parameters:
-
| cfgnum | New configuration number. |
Definition at line 195 of file main.c.