LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
VirtualSerial.h File Reference
#include "board.h"
#include "USB.h"
#include <string.h>
#include <stdio.h>
#include "Descriptors.h"

Go to the source code of this file.

Macros

#define LEDMASK_USB_NOTREADY   LEDS_LED1
 
#define LEDMASK_USB_ENUMERATING   (LEDS_LED2 | LEDS_LED3)
 
#define LEDMASK_USB_READY   (LEDS_LED2 | LEDS_LED4)
 
#define LEDMASK_USB_ERROR   (LEDS_LED1 | LEDS_LED3)
 
#define ECHO_CHARACTER_TASK   (0)
 
#define CDC_BRIDGE_TASK   (ECHO_CHARACTER_TASK + 1)
 

Functions

void SetupHardware (void)
 Hardware setup event callback function.
 
void EchoCharater (void)
 
void CDC_Bridge_Task (void)
 
void EVENT_USB_Device_Connect (void)
 USB Device connect event callback.
 
void EVENT_USB_Device_Disconnect (void)
 USB Device disconnect event callback.
 
void EVENT_USB_Device_ConfigurationChanged (void)
 USB Device configuration change event callback.
 
void EVENT_USB_Device_ControlRequest (void)
 USB Device control request receive event callback.