diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-08 07:34:16 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-08 07:34:16 +0000 |
commit | ac70ddd0a1c412bb54def48e53caaebd0b5c9c61 (patch) | |
tree | a36501a89cb67ffffd278d94ae4b6519b1d60af9 /Demos/Host/ClassDriver | |
parent | 33a018474913701fa9ef8e962acf58accd1184d2 (diff) | |
download | lufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.tar.gz lufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.tar.bz2 lufa-ac70ddd0a1c412bb54def48e53caaebd0b5c9c61.zip |
Converted Host mode demos to schedulerless. Fixed host mode broken due to earlier Start-of-frame event experiments.
Diffstat (limited to 'Demos/Host/ClassDriver')
-rw-r--r-- | Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c | 4 | ||||
-rw-r--r-- | Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c index f47e9f5ed..95aafca8c 100644 --- a/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c +++ b/Demos/Host/ClassDriver/MassStorageHost/Lib/MassStoreCommands.c @@ -119,10 +119,10 @@ static uint8_t MassStore_WaitForDataReceived(void) while (!(Pipe_IsINReceived()))
{
/* Check to see if a new frame has been issued (1ms elapsed) */
- if (FrameElapsed)
+ if (USB_INT_HasOccurred(USB_INT_HSOFI))
{
/* Clear the flag and decrement the timeout period counter */
- FrameElapsed = false;
+ USB_INT_Clear(USB_INT_HSOFI);
TimeoutMSRem--;
/* Check to see if the timeout period for the command has elapsed */
diff --git a/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c b/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c index f2f666bd1..8f05e48f4 100644 --- a/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c +++ b/Demos/Host/ClassDriver/StillImageHost/Lib/StillImageCommands.c @@ -109,10 +109,10 @@ uint8_t SImage_RecieveBlockHeader(void) while (!(Pipe_IsReadWriteAllowed()))
{
/* Check to see if a new frame has been issued (1ms elapsed) */
- if (FrameElapsed)
+ if (USB_INT_HasOccurred(USB_INT_HSOFI))
{
/* Clear the flag and decrement the timeout period counter */
- FrameElapsed = false;
+ USB_INT_Clear(USB_INT_HSOFI);
TimeoutMSRem--;
/* Check to see if the timeout period for the command has elapsed */
|