diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-11 06:15:45 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-11 06:15:45 +0000 |
commit | 9798440ca4f694e7cd8312a51b82e59589f1ebeb (patch) | |
tree | daf8898224f4acd5092ecd54eb0cdf1a6a747664 /Demos/Device/ClassDriver/CDC | |
parent | b2330934b9ccd51a59183eb2a11fdd95183df27b (diff) | |
download | lufa-9798440ca4f694e7cd8312a51b82e59589f1ebeb.tar.gz lufa-9798440ca4f694e7cd8312a51b82e59589f1ebeb.tar.bz2 lufa-9798440ca4f694e7cd8312a51b82e59589f1ebeb.zip |
Changed to new device mode Class Driver function name prefixes to make way for similar host mode Class drivers.
Diffstat (limited to 'Demos/Device/ClassDriver/CDC')
-rw-r--r-- | Demos/Device/ClassDriver/CDC/CDC.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c index 6f1539334..86d5c36c1 100644 --- a/Demos/Device/ClassDriver/CDC/CDC.c +++ b/Demos/Device/ClassDriver/CDC/CDC.c @@ -67,11 +67,11 @@ int main(void) {
CheckJoystickMovement();
- uint16_t BytesToDiscard = USB_CDC_BytesReceived(&VirtualSerial_CDC_Interface);
+ uint16_t BytesToDiscard = CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface);
while (BytesToDiscard--)
- USB_CDC_ReceiveByte(&VirtualSerial_CDC_Interface);
+ CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
- USB_CDC_USBTask(&VirtualSerial_CDC_Interface);
+ CDC_Device_USBTask(&VirtualSerial_CDC_Interface);
USB_USBTask();
}
}
@@ -125,7 +125,7 @@ void CheckJoystickMovement(void) {
ActionSent = true;
- USB_CDC_SendString(&VirtualSerial_CDC_Interface, ReportString, strlen(ReportString));
+ CDC_Device_SendString(&VirtualSerial_CDC_Interface, ReportString, strlen(ReportString));
}
}
@@ -146,12 +146,12 @@ void EVENT_USB_ConfigurationChanged(void) {
LEDs_SetAllLEDs(LEDMASK_USB_READY);
- if (!(USB_CDC_ConfigureEndpoints(&VirtualSerial_CDC_Interface)))
+ if (!(CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface)))
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
/** Event handler for the library USB Unhandled Control Packet event. */
void EVENT_USB_UnhandledControlPacket(void)
{
- USB_CDC_ProcessControlPacket(&VirtualSerial_CDC_Interface);
+ CDC_Device_ProcessControlPacket(&VirtualSerial_CDC_Interface);
}
|