diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-07 07:20:33 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-07 07:20:33 +0000 |
commit | 33a018474913701fa9ef8e962acf58accd1184d2 (patch) | |
tree | 8954e1c1ed31219db7f2143d375b6ad7a5142bc1 /Demos/Device/LowLevel/RNDISEthernet/Lib | |
parent | 2793c88fc601dcc7ec4961326dd9748a20f3ec83 (diff) | |
download | lufa-33a018474913701fa9ef8e962acf58accd1184d2.tar.gz lufa-33a018474913701fa9ef8e962acf58accd1184d2.tar.bz2 lufa-33a018474913701fa9ef8e962acf58accd1184d2.zip |
Converted device mode low-level demos to schedulerless.
Diffstat (limited to 'Demos/Device/LowLevel/RNDISEthernet/Lib')
-rw-r--r-- | Demos/Device/LowLevel/RNDISEthernet/Lib/ARP.h | 4 | ||||
-rw-r--r-- | Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c | 2 | ||||
-rw-r--r-- | Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h | 8 |
3 files changed, 4 insertions, 10 deletions
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/ARP.h b/Demos/Device/LowLevel/RNDISEthernet/Lib/ARP.h index 8551df85b..f05d8f093 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/Lib/ARP.h +++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/ARP.h @@ -38,9 +38,7 @@ /* Includes: */
#include <avr/io.h>
- #include <string.h>
-
- #include <LUFA/Scheduler/Scheduler.h>
+ #include <string.h> #include "EthernetProtocols.h"
#include "Ethernet.h"
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c b/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c index f259aad02..e106e5d74 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c +++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.c @@ -56,7 +56,7 @@ TCP_ConnectionState_t ConnectionStateTable[MAX_TCP_CONNECTIONS]; * level. If an application produces a response, this task constructs the appropriate Ethernet frame and places it into the Ethernet OUT
* buffer for later transmission.
*/
-TASK(TCP_Task)
+void TCP_Task(void)
{
/* Task to hand off TCP packets to and from the listening applications. */
diff --git a/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h b/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h index d4b72a519..313bd0216 100644 --- a/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h +++ b/Demos/Device/LowLevel/RNDISEthernet/Lib/TCP.h @@ -38,9 +38,7 @@ /* Includes: */
#include <avr/io.h>
- #include <stdbool.h>
-
- #include <LUFA/Scheduler/Scheduler.h>
+ #include <stdbool.h> #include "EthernetProtocols.h"
#include "Ethernet.h"
@@ -230,14 +228,12 @@ uint16_t UrgentPointer; /**< Urgent data pointer */
} TCP_Header_t;
- /* Tasks: */
- TASK(TCP_Task);
-
/* External Variables: */
TCP_PortState_t PortStateTable[MAX_OPEN_TCP_PORTS];
/* Function Prototypes: */
void TCP_Init(void);
+ void TCP_Task(void);
bool TCP_SetPortState(uint16_t Port, uint8_t State, void (*Handler)(TCP_ConnectionState_t*, TCP_ConnectionBuffer_t*));
uint8_t TCP_GetPortState(uint16_t Port);
bool TCP_SetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort, uint8_t State);
|