projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add start of a SDP service table, which will be linked to the Bluetooth SDP code.
[pub/USBasp.git]
/
Demos
/
Host
/
ClassDriver
/
RNDISEthernetHost
/
RNDISEthernetHost.c
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
index
148fdf2
..
e31f9a3
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
@@
-36,7
+36,7
@@
\r
#include "RNDISEthernetHost.h"
\r
\r
\r
#include "RNDISEthernetHost.h"
\r
\r
-/** Buffer to hold incom
m
ing and outgoing Ethernet packets. */
\r
+/** Buffer to hold incoming and outgoing Ethernet packets. */
\r
uint8_t PacketBuffer[1024];
\r
\r
/** LUFA RNDIS Class driver interface configuration and state information. This structure is
\r
uint8_t PacketBuffer[1024];
\r
\r
/** LUFA RNDIS Class driver interface configuration and state information. This structure is
\r
@@
-143,10
+143,11
@@
int main(void)
printf("Device Vendor ID: 0x%08lX\r\n", VendorID);
\r
\r
printf("RNDIS Device Enumerated.\r\n");
\r
printf("Device Vendor ID: 0x%08lX\r\n", VendorID);
\r
\r
printf("RNDIS Device Enumerated.\r\n");
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_READY);
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
- PrintIncom
m
ingPackets();
\r
+ PrintIncomingPackets();
\r
\r
break;
\r
}
\r
\r
break;
\r
}
\r
@@
-156,8
+157,8
@@
int main(void)
}
\r
}
\r
\r
}
\r
}
\r
\r
-/** Prints incom
m
ing packets from the attached RNDIS device to the serial port. */
\r
-void PrintIncom
m
ingPackets(void)
\r
+/** Prints incoming packets from the attached RNDIS device to the serial port. */
\r
+void PrintIncomingPackets(void)
\r
{
\r
if (RNDIS_Host_IsPacketReceived(&Ethernet_RNDIS_Interface))
\r
{
\r
{
\r
if (RNDIS_Host_IsPacketReceived(&Ethernet_RNDIS_Interface))
\r
{
\r