projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb3fcb9
)
All comments in the library, bootloaders, demos and projects have now been spell...
author
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 1 Apr 2009 13:53:58 +0000
(13:53 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Wed, 1 Apr 2009 13:53:58 +0000
(13:53 +0000)
95 files changed:
Bootloaders/CDC/BootloaderCDC.c
patch
|
blob
|
blame
|
history
Bootloaders/CDC/Descriptors.c
patch
|
blob
|
blame
|
history
Bootloaders/DFU/BootloaderDFU.c
patch
|
blob
|
blame
|
history
Bootloaders/DFU/BootloaderDFU.h
patch
|
blob
|
blame
|
history
Bootloaders/DFU/Descriptors.c
patch
|
blob
|
blame
|
history
Bootloaders/DFU/Descriptors.h
patch
|
blob
|
blame
|
history
Bootloaders/TeensyHID/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/AudioInput/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/AudioInput/Descriptors.h
patch
|
blob
|
blame
|
history
Demos/Device/AudioOutput/AudioOutput.c
patch
|
blob
|
blame
|
history
Demos/Device/AudioOutput/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/AudioOutput/Descriptors.h
patch
|
blob
|
blame
|
history
Demos/Device/CDC/CDC.c
patch
|
blob
|
blame
|
history
Demos/Device/CDC/CDC.h
patch
|
blob
|
blame
|
history
Demos/Device/CDC/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/DualCDC/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/DualCDC/DualCDC.c
patch
|
blob
|
blame
|
history
Demos/Device/DualCDC/DualCDC.h
patch
|
blob
|
blame
|
history
Demos/Device/GenericHID/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/GenericHID/GenericHID.c
patch
|
blob
|
blame
|
history
Demos/Device/Joystick/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/Keyboard/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/Keyboard/Keyboard.c
patch
|
blob
|
blame
|
history
Demos/Device/KeyboardMouse/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/MIDI/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/MIDI/Descriptors.h
patch
|
blob
|
blame
|
history
Demos/Device/MassStorage/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/MassStorage/MassStorage.c
patch
|
blob
|
blame
|
history
Demos/Device/MassStorage/SCSI.c
patch
|
blob
|
blame
|
history
Demos/Device/Mouse/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/Mouse/Mouse.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/ARP.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/DHCP.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/DHCP.h
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/Ethernet.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/Ethernet.h
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/ICMP.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/IP.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/IP.h
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/ProtocolDecoders.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/RNDIS.h
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/RNDISEthernet.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/TCP.c
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/TCP.h
patch
|
blob
|
blame
|
history
Demos/Device/RNDISEthernet/UDP.c
patch
|
blob
|
blame
|
history
Demos/Device/USBtoSerial/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/Device/USBtoSerial/RingBuff.h
patch
|
blob
|
blame
|
history
Demos/Device/USBtoSerial/USBtoSerial.c
patch
|
blob
|
blame
|
history
Demos/Device/USBtoSerial/USBtoSerial.h
patch
|
blob
|
blame
|
history
Demos/Host/CDCHost/CDCHost.c
patch
|
blob
|
blame
|
history
Demos/Host/CDCHost/ConfigDescriptor.h
patch
|
blob
|
blame
|
history
Demos/Host/GenericHIDHost/GenericHIDHost.c
patch
|
blob
|
blame
|
history
Demos/Host/KeyboardHost/KeyboardHost.c
patch
|
blob
|
blame
|
history
Demos/Host/KeyboardHostWithParser/HIDReport.h
patch
|
blob
|
blame
|
history
Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/MassStorageHost/MassStorageHost.c
patch
|
blob
|
blame
|
history
Demos/Host/MassStorageHost/MassStorageHost.h
patch
|
blob
|
blame
|
history
Demos/Host/MassStorageHost/MassStoreCommands.c
patch
|
blob
|
blame
|
history
Demos/Host/MassStorageHost/MassStoreCommands.h
patch
|
blob
|
blame
|
history
Demos/Host/MouseHost/MouseHost.c
patch
|
blob
|
blame
|
history
Demos/Host/MouseHostWithParser/HIDReport.h
patch
|
blob
|
blame
|
history
Demos/Host/MouseHostWithParser/MouseHostWithParser.c
patch
|
blob
|
blame
|
history
Demos/Host/StillImageHost/StillImageCommands.c
patch
|
blob
|
blame
|
history
Demos/Host/StillImageHost/StillImageCommands.h
patch
|
blob
|
blame
|
history
Demos/Host/StillImageHost/StillImageHost.c
patch
|
blob
|
blame
|
history
Demos/OTG/TestApp/Descriptors.c
patch
|
blob
|
blame
|
history
Demos/OTG/TestApp/TestApp.c
patch
|
blob
|
blame
|
history
LUFA/ChangeLog.txt
patch
|
blob
|
blame
|
history
LUFA/Common/Common.h
patch
|
blob
|
blame
|
history
LUFA/Common/FunctionAttributes.h
patch
|
blob
|
blame
|
history
LUFA/DriverStubs/Joystick.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/Board/HWB.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/Board/Joystick.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/Board/LEDs.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/Board/Temperature.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/Class/ConfigDescriptor.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/Class/HIDParser.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/Class/HIDReportData.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/HighLevel/Events.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/HighLevel/StdDescriptors.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/HighLevel/USBInterrupt.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/HighLevel/USBTask.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/Device.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/Endpoint.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/Host.c
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/Host.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/HostChapter9.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/OTG.h
patch
|
blob
|
blame
|
history
LUFA/Drivers/USB/LowLevel/Pipe.h
patch
|
blob
|
blame
|
history
LUFA/MemoryAllocator/DynAlloc.h
patch
|
blob
|
blame
|
history
LUFA/Scheduler/Scheduler.h
patch
|
blob
|
blame
|
history
Projects/Magstripe/CircularBitBuffer.h
patch
|
blob
|
blame
|
history
Projects/Magstripe/Descriptors.c
patch
|
blob
|
blame
|
history
Projects/Magstripe/Magstripe.c
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/CDC/BootloaderCDC.c
b/Bootloaders/CDC/BootloaderCDC.c
index
a1394bd
..
e87d471
100644
(file)
--- a/
Bootloaders/CDC/BootloaderCDC.c
+++ b/
Bootloaders/CDC/BootloaderCDC.c
@@
-510,7
+510,7
@@
TASK(CDC_Task)
}
\r
else if ((Command == 'B') || (Command == 'g'))
\r
{
\r
}
\r
else if ((Command == 'B') || (Command == 'g'))
\r
{
\r
- /* Delegate the block write/read to a sep
e
rate function for clarity */
\r
+ /* Delegate the block write/read to a sep
a
rate function for clarity */
\r
ReadWriteMemoryBlock(Command);
\r
}
\r
else if (Command == 'R')
\r
ReadWriteMemoryBlock(Command);
\r
}
\r
else if (Command == 'R')
\r
diff --git
a/Bootloaders/CDC/Descriptors.c
b/Bootloaders/CDC/Descriptors.c
index
ee0e194
..
bfa66a7
100644
(file)
--- a/
Bootloaders/CDC/Descriptors.c
+++ b/
Bootloaders/CDC/Descriptors.c
@@
-205,7
+205,7
@@
USB_Descriptor_String_t ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Bootloaders/DFU/BootloaderDFU.c
b/Bootloaders/DFU/BootloaderDFU.c
index
6bea9b2
..
5375b9c
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.c
+++ b/
Bootloaders/DFU/BootloaderDFU.c
@@
-539,7
+539,7
@@
static void LoadStartEndAddresses(void)
EndAddr = Address[1].Word;
\r
}
\r
\r
EndAddr = Address[1].Word;
\r
}
\r
\r
-/** Handler for a Memory Program command issued by the host. This routine handles the prep
e
rations needed
\r
+/** Handler for a Memory Program command issued by the host. This routine handles the prep
a
rations needed
\r
* to write subsequent data from the host into the specified memory.
\r
*/
\r
static void ProcessMemProgCommand(void)
\r
* to write subsequent data from the host into the specified memory.
\r
*/
\r
static void ProcessMemProgCommand(void)
\r
@@
-569,7
+569,7
@@
static void ProcessMemProgCommand(void)
}
\r
}
\r
\r
}
\r
}
\r
\r
-/** Handler for a Memory Read command issued by the host. This routine handles the prep
e
rations needed
\r
+/** Handler for a Memory Read command issued by the host. This routine handles the prep
a
rations needed
\r
* to read subsequent data from the specified memory out to the host, as well as implementing the memory
\r
* blank check command.
\r
*/
\r
* to read subsequent data from the specified memory out to the host, as well as implementing the memory
\r
* blank check command.
\r
*/
\r
diff --git
a/Bootloaders/DFU/BootloaderDFU.h
b/Bootloaders/DFU/BootloaderDFU.h
index
5a83403
..
d0a8254
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.h
+++ b/
Bootloaders/DFU/BootloaderDFU.h
@@
-63,7
+63,7
@@
/** Minor bootloader version number. */
\r
#define BOOTLOADER_VERSION_REV 0
\r
\r
/** Minor bootloader version number. */
\r
#define BOOTLOADER_VERSION_REV 0
\r
\r
- /** Complete bootloder version number expressed as a packed byte, constructed from the
\r
+ /** Complete bootlo
a
der version number expressed as a packed byte, constructed from the
\r
* two individual bootloader version macros.
\r
*/
\r
#define BOOTLOADER_VERSION ((BOOTLOADER_VERSION_MINOR << 4) | BOOTLOADER_VERSION_REV)
\r
* two individual bootloader version macros.
\r
*/
\r
#define BOOTLOADER_VERSION ((BOOTLOADER_VERSION_MINOR << 4) | BOOTLOADER_VERSION_REV)
\r
@@
-100,7
+100,7
@@
*/
\r
#define DFU_FILLER_BYTES_SIZE 26
\r
\r
*/
\r
#define DFU_FILLER_BYTES_SIZE 26
\r
\r
- /** DFU class command request to deta
t
ch from the host. */
\r
+ /** DFU class command request to detach from the host. */
\r
#define DFU_DETATCH 0x00
\r
\r
/** DFU class command request to send data from the host to the bootloader. */
\r
#define DFU_DETATCH 0x00
\r
\r
/** DFU class command request to send data from the host to the bootloader. */
\r
@@
-141,7
+141,7
@@
/** Type define for a non-returning function pointer to the loaded application. */
\r
typedef void (*AppPtr_t)(void) ATTR_NO_RETURN;
\r
\r
/** Type define for a non-returning function pointer to the loaded application. */
\r
typedef void (*AppPtr_t)(void) ATTR_NO_RETURN;
\r
\r
- /** Type define for a struc
u
ture containing a complete DFU command issued by the host. */
\r
+ /** Type define for a structure containing a complete DFU command issued by the host. */
\r
typedef struct
\r
{
\r
uint8_t Command; /**< Single byte command to perform, one of the COMMAND_* macro values */
\r
typedef struct
\r
{
\r
uint8_t Command; /**< Single byte command to perform, one of the COMMAND_* macro values */
\r
diff --git
a/Bootloaders/DFU/Descriptors.c
b/Bootloaders/DFU/Descriptors.c
index
3a1c69c
..
1313118
100644
(file)
--- a/
Bootloaders/DFU/Descriptors.c
+++ b/
Bootloaders/DFU/Descriptors.c
@@
-139,7
+139,7
@@
USB_Descriptor_String_t ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Bootloaders/DFU/Descriptors.h
b/Bootloaders/DFU/Descriptors.h
index
7765981
..
527fc50
100644
(file)
--- a/
Bootloaders/DFU/Descriptors.h
+++ b/
Bootloaders/DFU/Descriptors.h
@@
-44,11
+44,11
@@
#define DTYPE_DFUFunctional 0x21
\r
\r
/** DFU attribute mask, indicating that the DFU device will detach and re-attach when a DFU_DETACH
\r
#define DTYPE_DFUFunctional 0x21
\r
\r
/** DFU attribute mask, indicating that the DFU device will detach and re-attach when a DFU_DETACH
\r
- * command is issued, rather than the host issing a USB Reset.
\r
+ * command is issued, rather than the host iss
u
ing a USB Reset.
\r
*/
\r
#define ATTR_WILL_DETATCH (1 << 3)
\r
\r
*/
\r
#define ATTR_WILL_DETATCH (1 << 3)
\r
\r
- /** DFU attribute mask, indicating that the DFU device can communicate during the man
e
festation phase
\r
+ /** DFU attribute mask, indicating that the DFU device can communicate during the man
i
festation phase
\r
* (memory programming phase).
\r
*/
\r
#define ATTR_MANEFESTATION_TOLLERANT (1 << 2)
\r
* (memory programming phase).
\r
*/
\r
#define ATTR_MANEFESTATION_TOLLERANT (1 << 2)
\r
diff --git
a/Bootloaders/TeensyHID/Descriptors.c
b/Bootloaders/TeensyHID/Descriptors.c
index
adfbe6c
..
d17f4cf
100644
(file)
--- a/
Bootloaders/TeensyHID/Descriptors.c
+++ b/
Bootloaders/TeensyHID/Descriptors.c
@@
-168,7
+168,7
@@
USB_Descriptor_String_t ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/AudioInput/Descriptors.c
b/Demos/Device/AudioInput/Descriptors.c
index
7a3e428
..
95b2906
100644
(file)
--- a/
Demos/Device/AudioInput/Descriptors.c
+++ b/
Demos/Device/AudioInput/Descriptors.c
@@
-267,7
+267,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/AudioInput/Descriptors.h
b/Demos/Device/AudioInput/Descriptors.h
index
cc00749
..
5c5d9a6
100644
(file)
--- a/
Demos/Device/AudioInput/Descriptors.h
+++ b/
Demos/Device/AudioInput/Descriptors.h
@@
-183,7
+183,7
@@
uint8_t SourceID; /**< Source ID value of the audio source input into this feature unit */
\r
\r
uint8_t ControlSize; /**< Size of each element in the ChanelControlls array */
\r
uint8_t SourceID; /**< Source ID value of the audio source input into this feature unit */
\r
\r
uint8_t ControlSize; /**< Size of each element in the ChanelControlls array */
\r
- uint8_t ChannelControls[3]; /**< Feature masks for the control channel, and each sep
e
rate audio channel */
\r
+ uint8_t ChannelControls[3]; /**< Feature masks for the control channel, and each sep
a
rate audio channel */
\r
\r
uint8_t FeatureUnitStrIndex; /**< Index of a string descriptor describing this descriptor within the device */
\r
} USB_AudioFeatureUnit_t;
\r
\r
uint8_t FeatureUnitStrIndex; /**< Index of a string descriptor describing this descriptor within the device */
\r
} USB_AudioFeatureUnit_t;
\r
@@
-202,7
+202,7
@@
uint8_t AssociatedOutputTerminal; /**< ID of associated output terminal, for physically grouped terminals
\r
* such as the speaker and microphone of a phone handset
\r
*/
\r
uint8_t AssociatedOutputTerminal; /**< ID of associated output terminal, for physically grouped terminals
\r
* such as the speaker and microphone of a phone handset
\r
*/
\r
- uint8_t TotalChannels; /**< Total number of sep
e
rate audio channels within this interface (right, left, etc.) */
\r
+ uint8_t TotalChannels; /**< Total number of sep
a
rate audio channels within this interface (right, left, etc.) */
\r
uint16_t ChannelConfig; /**< CHANNEL_* masks indicating what channel layout is supported by this terminal */
\r
\r
uint8_t ChannelStrIndex; /**< Index of a string descriptor describing this channel within the device */
\r
uint16_t ChannelConfig; /**< CHANNEL_* masks indicating what channel layout is supported by this terminal */
\r
\r
uint8_t ChannelStrIndex; /**< Index of a string descriptor describing this channel within the device */
\r
diff --git
a/Demos/Device/AudioOutput/AudioOutput.c
b/Demos/Device/AudioOutput/AudioOutput.c
index
0f390f0
..
855edf6
100644
(file)
--- a/
Demos/Device/AudioOutput/AudioOutput.c
+++ b/
Demos/Device/AudioOutput/AudioOutput.c
@@
-236,7
+236,7
@@
TASK(USB_Audio_Task)
/* Clear the sample reload timer */
\r
TIFR0 |= (1 << OCF0A);
\r
\r
/* Clear the sample reload timer */
\r
TIFR0 |= (1 << OCF0A);
\r
\r
- /* Retr
ei
ve the signed 16-bit left and right audio samples */
\r
+ /* Retr
ie
ve the signed 16-bit left and right audio samples */
\r
int16_t LeftSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
int16_t RightSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
\r
int16_t LeftSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
int16_t RightSample_16Bit = (int16_t)Endpoint_Read_Word_LE();
\r
\r
diff --git
a/Demos/Device/AudioOutput/Descriptors.c
b/Demos/Device/AudioOutput/Descriptors.c
index
169e534
..
30af5e8
100644
(file)
--- a/
Demos/Device/AudioOutput/Descriptors.c
+++ b/
Demos/Device/AudioOutput/Descriptors.c
@@
-267,7
+267,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/AudioOutput/Descriptors.h
b/Demos/Device/AudioOutput/Descriptors.h
index
99f10d6
..
1964b74
100644
(file)
--- a/
Demos/Device/AudioOutput/Descriptors.h
+++ b/
Demos/Device/AudioOutput/Descriptors.h
@@
-183,7
+183,7
@@
uint8_t SourceID; /**< Source ID value of the audio source input into this feature unit */
\r
\r
uint8_t ControlSize; /**< Size of each element in the ChanelControlls array */
\r
uint8_t SourceID; /**< Source ID value of the audio source input into this feature unit */
\r
\r
uint8_t ControlSize; /**< Size of each element in the ChanelControlls array */
\r
- uint8_t ChannelControls[3]; /**< Feature masks for the control channel, and each sep
e
rate audio channel */
\r
+ uint8_t ChannelControls[3]; /**< Feature masks for the control channel, and each sep
a
rate audio channel */
\r
\r
uint8_t FeatureUnitStrIndex; /**< Index of a string descriptor describing this descriptor within the device */
\r
} USB_AudioFeatureUnit_t;
\r
\r
uint8_t FeatureUnitStrIndex; /**< Index of a string descriptor describing this descriptor within the device */
\r
} USB_AudioFeatureUnit_t;
\r
@@
-202,7
+202,7
@@
uint8_t AssociatedOutputTerminal; /**< ID of associated output terminal, for physically grouped terminals
\r
* such as the speaker and microphone of a phone handset
\r
*/
\r
uint8_t AssociatedOutputTerminal; /**< ID of associated output terminal, for physically grouped terminals
\r
* such as the speaker and microphone of a phone handset
\r
*/
\r
- uint8_t TotalChannels; /**< Total number of sep
e
rate audio channels within this interface (right, left, etc.) */
\r
+ uint8_t TotalChannels; /**< Total number of sep
a
rate audio channels within this interface (right, left, etc.) */
\r
uint16_t ChannelConfig; /**< CHANNEL_* masks indicating what channel layout is supported by this terminal */
\r
\r
uint8_t ChannelStrIndex; /**< Index of a string descriptor describing this channel within the device */
\r
uint16_t ChannelConfig; /**< CHANNEL_* masks indicating what channel layout is supported by this terminal */
\r
\r
uint8_t ChannelStrIndex; /**< Index of a string descriptor describing this channel within the device */
\r
diff --git
a/Demos/Device/CDC/CDC.c
b/Demos/Device/CDC/CDC.c
index
d4eecc8
..
5e153f6
100644
(file)
--- a/
Demos/Device/CDC/CDC.c
+++ b/
Demos/Device/CDC/CDC.c
@@
-56,7
+56,7
@@
TASK_LIST
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
- * serial link characteristics and instead sends and rec
ie
ves data in endpoint streams.
\r
+ * serial link characteristics and instead sends and rec
ei
ves data in endpoint streams.
\r
*/
\r
CDC_Line_Coding_t LineCoding = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
*/
\r
CDC_Line_Coding_t LineCoding = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
@@
-66,7
+66,7
@@
CDC_Line_Coding_t LineCoding = { BaudRateBPS: 9600,
/** String to print through the virtual serial port when the joystick is pressed upwards. */
\r
char JoystickUpString[] = "Joystick Up\r\n";
\r
\r
/** String to print through the virtual serial port when the joystick is pressed upwards. */
\r
char JoystickUpString[] = "Joystick Up\r\n";
\r
\r
-/** String to print through the virtual serial port when the joystick is pressed downward
s
. */
\r
+/** String to print through the virtual serial port when the joystick is pressed downward. */
\r
char JoystickDownString[] = "Joystick Down\r\n";
\r
\r
/** String to print through the virtual serial port when the joystick is pressed left. */
\r
char JoystickDownString[] = "Joystick Down\r\n";
\r
\r
/** String to print through the virtual serial port when the joystick is pressed left. */
\r
diff --git
a/Demos/Device/CDC/CDC.h
b/Demos/Device/CDC/CDC.h
index
d953303
..
a36fdc9
100644
(file)
--- a/
Demos/Device/CDC/CDC.h
+++ b/
Demos/Device/CDC/CDC.h
@@
-98,17
+98,17
@@
#define CONTROL_LINE_IN_RING (1 << 3)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
#define CONTROL_LINE_IN_RING (1 << 3)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a framing error has ocurred on the virtual serial port.
\r
+ * to indicate that a framing error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_FRAMEERROR (1 << 4)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
*/
\r
#define CONTROL_LINE_IN_FRAMEERROR (1 << 4)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a parity error has ocurred on the virtual serial port.
\r
+ * to indicate that a parity error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_PARITYERROR (1 << 5)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
*/
\r
#define CONTROL_LINE_IN_PARITYERROR (1 << 5)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a data overrun error has ocurred on the virtual serial port.
\r
+ * to indicate that a data overrun error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_OVERRUNERROR (1 << 6)
\r
\r
*/
\r
#define CONTROL_LINE_IN_OVERRUNERROR (1 << 6)
\r
\r
@@
-138,7
+138,7
@@
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
- uint8_t DataBits; /**< Bits of data per charater of the virtual serial port */
\r
+ uint8_t DataBits; /**< Bits of data per chara
c
ter of the virtual serial port */
\r
} CDC_Line_Coding_t;
\r
\r
/** Type define for a CDC notification, sent to the host via the CDC notification endpoint to indicate a
\r
} CDC_Line_Coding_t;
\r
\r
/** Type define for a CDC notification, sent to the host via the CDC notification endpoint to indicate a
\r
diff --git
a/Demos/Device/CDC/Descriptors.c
b/Demos/Device/CDC/Descriptors.c
index
fa0c79d
..
869dc5d
100644
(file)
--- a/
Demos/Device/CDC/Descriptors.c
+++ b/
Demos/Device/CDC/Descriptors.c
@@
-216,7
+216,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/DualCDC/Descriptors.c
b/Demos/Device/DualCDC/Descriptors.c
index
4f74b13
..
91ae50e
100644
(file)
--- a/
Demos/Device/DualCDC/Descriptors.c
+++ b/
Demos/Device/DualCDC/Descriptors.c
@@
-338,7
+338,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/DualCDC/DualCDC.c
b/Demos/Device/DualCDC/DualCDC.c
index
3c598da
..
fecbaff
100644
(file)
--- a/
Demos/Device/DualCDC/DualCDC.c
+++ b/
Demos/Device/DualCDC/DualCDC.c
@@
-57,7
+57,7
@@
TASK_LIST
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
- * serial link characteristics and instead sends and rec
ie
ves data in endpoint streams.
\r
+ * serial link characteristics and instead sends and rec
ei
ves data in endpoint streams.
\r
*/
\r
CDC_Line_Coding_t LineCoding1 = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
*/
\r
CDC_Line_Coding_t LineCoding1 = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
@@
-70,7
+70,7
@@
CDC_Line_Coding_t LineCoding1 = { BaudRateBPS: 9600,
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
*
\r
* These values are set by the host via a class-specific request, however they are not required to be used accurately.
\r
* It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical
\r
- * serial link characteristics and instead sends and rec
ie
ves data in endpoint streams.
\r
+ * serial link characteristics and instead sends and rec
ei
ves data in endpoint streams.
\r
*/
\r
CDC_Line_Coding_t LineCoding2 = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
*/
\r
CDC_Line_Coding_t LineCoding2 = { BaudRateBPS: 9600,
\r
CharFormat: OneStopBit,
\r
@@
-80,7
+80,7
@@
CDC_Line_Coding_t LineCoding2 = { BaudRateBPS: 9600,
/** String to print through the first virtual serial port when the joystick is pressed upwards. */
\r
char JoystickUpString[] = "Joystick Up\r\n";
\r
\r
/** String to print through the first virtual serial port when the joystick is pressed upwards. */
\r
char JoystickUpString[] = "Joystick Up\r\n";
\r
\r
-/** String to print through the first virtual serial port when the joystick is pressed downward
s
. */
\r
+/** String to print through the first virtual serial port when the joystick is pressed downward. */
\r
char JoystickDownString[] = "Joystick Down\r\n";
\r
\r
/** String to print through the first virtual serial port when the joystick is pressed left. */
\r
char JoystickDownString[] = "Joystick Down\r\n";
\r
\r
/** String to print through the first virtual serial port when the joystick is pressed left. */
\r
@@
-324,7
+324,7
@@
TASK(CDC1_Task)
Endpoint_ClearCurrentBank();
\r
}
\r
\r
Endpoint_ClearCurrentBank();
\r
}
\r
\r
-/** Function to manage CDC data transmission and reception to and from the host for the second CDC interface, which echos back
\r
+/** Function to manage CDC data transmission and reception to and from the host for the second CDC interface, which echo
e
s back
\r
* all data sent to it from the host.
\r
*/
\r
TASK(CDC2_Task)
\r
* all data sent to it from the host.
\r
*/
\r
TASK(CDC2_Task)
\r
@@
-335,13
+335,13
@@
TASK(CDC2_Task)
/* Check to see if any data has been received */
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
/* Check to see if any data has been received */
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
- /* Create a temp buffer big enough to hold the incom
m
ing endpoint packet */
\r
+ /* Create a temp buffer big enough to hold the incoming endpoint packet */
\r
uint8_t Buffer[Endpoint_BytesInEndpoint()];
\r
\r
uint8_t Buffer[Endpoint_BytesInEndpoint()];
\r
\r
- /* Remember how large the incom
m
ing packet is */
\r
+ /* Remember how large the incoming packet is */
\r
uint16_t DataLength = Endpoint_BytesInEndpoint();
\r
\r
uint16_t DataLength = Endpoint_BytesInEndpoint();
\r
\r
- /* Read in the incom
m
ing packet into the buffer */
\r
+ /* Read in the incoming packet into the buffer */
\r
Endpoint_Read_Stream_LE(&Buffer, DataLength);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
Endpoint_Read_Stream_LE(&Buffer, DataLength);
\r
\r
/* Finalize the stream transfer to send the last packet */
\r
diff --git
a/Demos/Device/DualCDC/DualCDC.h
b/Demos/Device/DualCDC/DualCDC.h
index
4c62abf
..
84be114
100644
(file)
--- a/
Demos/Device/DualCDC/DualCDC.h
+++ b/
Demos/Device/DualCDC/DualCDC.h
@@
-87,7
+87,7
@@
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
- uint8_t DataBits; /**< Bits of data per charater of the virtual serial port */
\r
+ uint8_t DataBits; /**< Bits of data per chara
c
ter of the virtual serial port */
\r
} CDC_Line_Coding_t;
\r
\r
/* Enums: */
\r
} CDC_Line_Coding_t;
\r
\r
/* Enums: */
\r
diff --git
a/Demos/Device/GenericHID/Descriptors.c
b/Demos/Device/GenericHID/Descriptors.c
index
c460a6c
..
0c3fac7
100644
(file)
--- a/
Demos/Device/GenericHID/Descriptors.c
+++ b/
Demos/Device/GenericHID/Descriptors.c
@@
-195,7
+195,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/GenericHID/GenericHID.c
b/Demos/Device/GenericHID/GenericHID.c
index
cacbdc5
..
2d98699
100644
(file)
--- a/
Demos/Device/GenericHID/GenericHID.c
+++ b/
Demos/Device/GenericHID/GenericHID.c
@@
-268,7
+268,7
@@
TASK(USB_HID_Report)
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
- /* Create a tempoary buffer to hold the read in report from the host */
\r
+ /* Create a tempo
r
ary buffer to hold the read in report from the host */
\r
uint8_t GenericData[GENERIC_REPORT_SIZE];
\r
\r
/* Read Generic Report Data */
\r
uint8_t GenericData[GENERIC_REPORT_SIZE];
\r
\r
/* Read Generic Report Data */
\r
@@
-285,7
+285,7
@@
TASK(USB_HID_Report)
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
\r
if (Endpoint_ReadWriteAllowed())
\r
{
\r
- /* Create a tempoary buffer to hold the report to send to the host */
\r
+ /* Create a tempo
r
ary buffer to hold the report to send to the host */
\r
uint8_t GenericData[GENERIC_REPORT_SIZE];
\r
\r
/* Create Generic Report Data */
\r
uint8_t GenericData[GENERIC_REPORT_SIZE];
\r
\r
/* Create Generic Report Data */
\r
diff --git
a/Demos/Device/Joystick/Descriptors.c
b/Demos/Device/Joystick/Descriptors.c
index
36e644c
..
788596e
100644
(file)
--- a/
Demos/Device/Joystick/Descriptors.c
+++ b/
Demos/Device/Joystick/Descriptors.c
@@
-195,7
+195,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/Keyboard/Descriptors.c
b/Demos/Device/Keyboard/Descriptors.c
index
1f383ab
..
722b658
100644
(file)
--- a/
Demos/Device/Keyboard/Descriptors.c
+++ b/
Demos/Device/Keyboard/Descriptors.c
@@
-212,7
+212,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/Keyboard/Keyboard.c
b/Demos/Device/Keyboard/Keyboard.c
index
265e950
..
d118ede
100644
(file)
--- a/
Demos/Device/Keyboard/Keyboard.c
+++ b/
Demos/Device/Keyboard/Keyboard.c
@@
-67,7
+67,7
@@
bool UsingReportProtocol = true;
uint8_t IdleCount = 0;
\r
\r
/** Current Idle period remaining. When the IdleCount value is set, this tracks the remaining number of idle
\r
uint8_t IdleCount = 0;
\r
\r
/** Current Idle period remaining. When the IdleCount value is set, this tracks the remaining number of idle
\r
- * milliseconds. This is sep
e
rate to the IdleCount timer and is incremented and compared as the host may request
\r
+ * milliseconds. This is sep
a
rate to the IdleCount timer and is incremented and compared as the host may request
\r
* the current idle period via a Get Idle HID class request, thus its value must be preserved.
\r
*/
\r
uint16_t IdleMSRemaining = 0;
\r
* the current idle period via a Get Idle HID class request, thus its value must be preserved.
\r
*/
\r
uint16_t IdleMSRemaining = 0;
\r
@@
-243,7
+243,7
@@
EVENT_HANDLER(USB_UnhandledControlPacket)
/* Read in the LED report from the host */
\r
uint8_t LEDStatus = Endpoint_Read_Byte();
\r
\r
/* Read in the LED report from the host */
\r
uint8_t LEDStatus = Endpoint_Read_Byte();
\r
\r
- /* Process the incom
m
ing LED report */
\r
+ /* Process the incoming LED report */
\r
ProcessLEDReport(LEDStatus);
\r
\r
/* Clear the endpoint data */
\r
ProcessLEDReport(LEDStatus);
\r
\r
/* Clear the endpoint data */
\r
diff --git
a/Demos/Device/KeyboardMouse/Descriptors.c
b/Demos/Device/KeyboardMouse/Descriptors.c
index
c9d9103
..
7f39c6b
100644
(file)
--- a/
Demos/Device/KeyboardMouse/Descriptors.c
+++ b/
Demos/Device/KeyboardMouse/Descriptors.c
@@
-282,7
+282,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/MIDI/Descriptors.c
b/Demos/Device/MIDI/Descriptors.c
index
1dbc1d9
..
81f5748
100644
(file)
--- a/
Demos/Device/MIDI/Descriptors.c
+++ b/
Demos/Device/MIDI/Descriptors.c
@@
-278,7
+278,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/MIDI/Descriptors.h
b/Demos/Device/MIDI/Descriptors.h
index
f80e58b
..
8a93b87
100644
(file)
--- a/
Demos/Device/MIDI/Descriptors.h
+++ b/
Demos/Device/MIDI/Descriptors.h
@@
-117,7
+117,7
@@
} USB_AudioStreamEndpoint_Std_t;
\r
\r
/** Type define for an Audio class specific MIDI IN jack. This gives information to the host on a MIDI input, either
\r
} USB_AudioStreamEndpoint_Std_t;
\r
\r
/** Type define for an Audio class specific MIDI IN jack. This gives information to the host on a MIDI input, either
\r
- * a physical input jack, or a logical jack (rec
ie
ving input data internally, or from the host via an endpoint).
\r
+ * a physical input jack, or a logical jack (rec
ei
ving input data internally, or from the host via an endpoint).
\r
*/
\r
typedef struct
\r
{
\r
*/
\r
typedef struct
\r
{
\r
diff --git
a/Demos/Device/MassStorage/Descriptors.c
b/Demos/Device/MassStorage/Descriptors.c
index
a617315
..
dd98db5
100644
(file)
--- a/
Demos/Device/MassStorage/Descriptors.c
+++ b/
Demos/Device/MassStorage/Descriptors.c
@@
-172,7
+172,7
@@
USB_Descriptor_String_t PROGMEM SerialNumberString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/MassStorage/MassStorage.c
b/Demos/Device/MassStorage/MassStorage.c
index
92e3307
..
4032648
100644
(file)
--- a/
Demos/Device/MassStorage/MassStorage.c
+++ b/
Demos/Device/MassStorage/MassStorage.c
@@
-56,7
+56,7
@@
CommandBlockWrapper_t CommandBlock;
/** Structure to hold the latest Command Status Wrapper to return to the host, containing the status of the last issued command. */
\r
CommandStatusWrapper_t CommandStatus = { Signature: CSW_SIGNATURE };
\r
\r
/** Structure to hold the latest Command Status Wrapper to return to the host, containing the status of the last issued command. */
\r
CommandStatusWrapper_t CommandStatus = { Signature: CSW_SIGNATURE };
\r
\r
-/** Flag to asyncronously abort any in-progress data transfers upon the reception of a mass storage reset command. */
\r
+/** Flag to async
h
ronously abort any in-progress data transfers upon the reception of a mass storage reset command. */
\r
volatile bool IsMassStoreReset = false;
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
volatile bool IsMassStoreReset = false;
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then
\r
@@
-262,7
+262,7
@@
TASK(USB_MassStorage)
/* Return command status block to the host */
\r
ReturnCommandStatus();
\r
\r
/* Return command status block to the host */
\r
ReturnCommandStatus();
\r
\r
- /* Check if a Mass Storage Reset ocurred */
\r
+ /* Check if a Mass Storage Reset oc
c
urred */
\r
if (IsMassStoreReset)
\r
{
\r
/* Reset the data endpoint banks */
\r
if (IsMassStoreReset)
\r
{
\r
/* Reset the data endpoint banks */
\r
diff --git
a/Demos/Device/MassStorage/SCSI.c
b/Demos/Device/MassStorage/SCSI.c
index
d9c5526
..
d50f63d
100644
(file)
--- a/
Demos/Device/MassStorage/SCSI.c
+++ b/
Demos/Device/MassStorage/SCSI.c
@@
-38,7
+38,7
@@
#define INCLUDE_FROM_SCSI_C
\r
#include "SCSI.h"
\r
\r
#define INCLUDE_FROM_SCSI_C
\r
#include "SCSI.h"
\r
\r
-/** Structure to hold the SCSI reponse data to a SCSI INQUIRY command. This gives information about the device's
\r
+/** Structure to hold the SCSI re
s
ponse data to a SCSI INQUIRY command. This gives information about the device's
\r
* features and capabilities.
\r
*/
\r
SCSI_Inquiry_Response_t InquiryData =
\r
* features and capabilities.
\r
*/
\r
SCSI_Inquiry_Response_t InquiryData =
\r
@@
-88,7
+88,7
@@
void SCSI_DecodeSCSICommand(void)
{
\r
bool CommandSuccess = false;
\r
\r
{
\r
bool CommandSuccess = false;
\r
\r
- /* Run the apropriate SCSI command hander function based on the passed command */
\r
+ /* Run the ap
p
ropriate SCSI command hander function based on the passed command */
\r
switch (CommandBlock.SCSICommandData[0])
\r
{
\r
case SCSI_CMD_INQUIRY:
\r
switch (CommandBlock.SCSICommandData[0])
\r
{
\r
case SCSI_CMD_INQUIRY:
\r
@@
-235,7
+235,7
@@
static bool SCSI_Command_Read_Capacity_10(void)
return true;
\r
}
\r
\r
return true;
\r
}
\r
\r
-/** Command processing for an issued SCSI SEND DIAGNOSTIC command. This command peforms a quick check of the Dataflash ICs on the
\r
+/** Command processing for an issued SCSI SEND DIAGNOSTIC command. This command pe
r
forms a quick check of the Dataflash ICs on the
\r
* board, and indicates if they are present and functioning correctly. Only the Self-Test portion of the diagnostic command is
\r
* supported.
\r
*
\r
* board, and indicates if they are present and functioning correctly. Only the Self-Test portion of the diagnostic command is
\r
* supported.
\r
*
\r
diff --git
a/Demos/Device/Mouse/Descriptors.c
b/Demos/Device/Mouse/Descriptors.c
index
dac048b
..
9ad39f4
100644
(file)
--- a/
Demos/Device/Mouse/Descriptors.c
+++ b/
Demos/Device/Mouse/Descriptors.c
@@
-195,7
+195,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/Mouse/Mouse.c
b/Demos/Device/Mouse/Mouse.c
index
c066d42
..
c429768
100644
(file)
--- a/
Demos/Device/Mouse/Mouse.c
+++ b/
Demos/Device/Mouse/Mouse.c
@@
-66,7
+66,7
@@
bool UsingReportProtocol = true;
uint8_t IdleCount = 0;
\r
\r
/** Current Idle period remaining. When the IdleCount value is set, this tracks the remaining number of idle
\r
uint8_t IdleCount = 0;
\r
\r
/** Current Idle period remaining. When the IdleCount value is set, this tracks the remaining number of idle
\r
- * milliseconds. This is sep
e
rate to the IdleCount timer and is incremented and compared as the host may request
\r
+ * milliseconds. This is sep
a
rate to the IdleCount timer and is incremented and compared as the host may request
\r
* the current idle period via a Get Idle HID class request, thus its value must be preserved.
\r
*/
\r
uint16_t IdleMSRemaining = 0;
\r
* the current idle period via a Get Idle HID class request, thus its value must be preserved.
\r
*/
\r
uint16_t IdleMSRemaining = 0;
\r
diff --git
a/Demos/Device/RNDISEthernet/ARP.c
b/Demos/Device/RNDISEthernet/ARP.c
index
3560403
..
0f108c2
100644
(file)
--- a/
Demos/Device/RNDISEthernet/ARP.c
+++ b/
Demos/Device/RNDISEthernet/ARP.c
@@
-41,7
+41,7
@@
* to the output Ethernet frame if the host is requesting the IP or MAC address of the
\r
* virtual server device on the network.
\r
*
\r
* to the output Ethernet frame if the host is requesting the IP or MAC address of the
\r
* virtual server device on the network.
\r
*
\r
- * \param InDataStart Pointer to the start of the incom
m
ing packet's ARP header
\r
+ * \param InDataStart Pointer to the start of the incoming packet's ARP header
\r
* \param OutDataStart Pointer to the start of the outgoing packet's ARP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
* \param OutDataStart Pointer to the start of the outgoing packet's ARP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
diff --git
a/Demos/Device/RNDISEthernet/DHCP.c
b/Demos/Device/RNDISEthernet/DHCP.c
index
7f220c4
..
76711fb
100644
(file)
--- a/
Demos/Device/RNDISEthernet/DHCP.c
+++ b/
Demos/Device/RNDISEthernet/DHCP.c
@@
-40,8
+40,8
@@
/** Processes a DHCP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if the host is requesting or accepting an IP address.
\r
*
\r
/** Processes a DHCP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if the host is requesting or accepting an IP address.
\r
*
\r
- * \param IPHeaderInStart Pointer to the start of the incom
m
ing packet's IP header
\r
- * \param DHCPHeaderInStart Pointer to the start of the incom
m
ing packet's DHCP header
\r
+ * \param IPHeaderInStart Pointer to the start of the incoming packet's IP header
\r
+ * \param DHCPHeaderInStart Pointer to the start of the incoming packet's DHCP header
\r
* \param DHCPHeaderOutStart Pointer to the start of the outgoing packet's DHCP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
* \param DHCPHeaderOutStart Pointer to the start of the outgoing packet's DHCP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
@@
-72,12
+72,12
@@
int16_t DHCP_ProcessDHCPPacket(void* IPHeaderInStart, void* DHCPHeaderInStart, v
memcpy(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t));
\r
DHCPHeaderOUT->Cookie = SwapEndian_32(DHCP_MAGIC_COOKIE);
\r
\r
memcpy(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t));
\r
DHCPHeaderOUT->Cookie = SwapEndian_32(DHCP_MAGIC_COOKIE);
\r
\r
- /* Alter the incom
m
ing IP packet header so that the corrected IP source and destinations are used - this means that
\r
+ /* Alter the incoming IP packet header so that the corrected IP source and destinations are used - this means that
\r
when the response IP header is generated, it will use the corrected addresses and not the null/broatcast addresses */
\r
IPHeaderIN->SourceAddress = ClientIPAddress;
\r
IPHeaderIN->DestinationAddress = ServerIPAddress;
\r
\r
when the response IP header is generated, it will use the corrected addresses and not the null/broatcast addresses */
\r
IPHeaderIN->SourceAddress = ClientIPAddress;
\r
IPHeaderIN->DestinationAddress = ServerIPAddress;
\r
\r
- /* Process the incom
m
ing DHCP packet options */
\r
+ /* Process the incoming DHCP packet options */
\r
while (DHCPOptionsINStart[0] != DHCP_OPTION_END)
\r
{
\r
/* Find the Message Type DHCP option, to determine the type of DHCP packet */
\r
while (DHCPOptionsINStart[0] != DHCP_OPTION_END)
\r
{
\r
/* Find the Message Type DHCP option, to determine the type of DHCP packet */
\r
diff --git
a/Demos/Device/RNDISEthernet/DHCP.h
b/Demos/Device/RNDISEthernet/DHCP.h
index
f1e14e1
..
f0e68b9
100644
(file)
--- a/
Demos/Device/RNDISEthernet/DHCP.h
+++ b/
Demos/Device/RNDISEthernet/DHCP.h
@@
-102,7
+102,7
@@
uint8_t HardwareAddressLength; /**< Length in bytes of a hardware (MAC) address on the network */
\r
uint8_t Hops; /**< Number of hops required to reach the server, unused */
\r
\r
uint8_t HardwareAddressLength; /**< Length in bytes of a hardware (MAC) address on the network */
\r
uint8_t Hops; /**< Number of hops required to reach the server, unused */
\r
\r
- uint32_t TransactionID; /**< Unique ID of the DHCP packet, for pos
tive matching between sent and recie
ved packets */
\r
+ uint32_t TransactionID; /**< Unique ID of the DHCP packet, for pos
itive matching between sent and recei
ved packets */
\r
\r
uint16_t ElapsedSeconds; /**< Elapsed seconds since the request was made */
\r
uint16_t Flags; /**< BOOTP packet flags */
\r
\r
uint16_t ElapsedSeconds; /**< Elapsed seconds since the request was made */
\r
uint16_t Flags; /**< BOOTP packet flags */
\r
diff --git
a/Demos/Device/RNDISEthernet/Descriptors.c
b/Demos/Device/RNDISEthernet/Descriptors.c
index
1994c60
..
0e7b934
100644
(file)
--- a/
Demos/Device/RNDISEthernet/Descriptors.c
+++ b/
Demos/Device/RNDISEthernet/Descriptors.c
@@
-216,7
+216,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/RNDISEthernet/Ethernet.c
b/Demos/Device/RNDISEthernet/Ethernet.c
index
b8d5615
..
3d34f71
100644
(file)
--- a/
Demos/Device/RNDISEthernet/Ethernet.c
+++ b/
Demos/Device/RNDISEthernet/Ethernet.c
@@
-31,14
+31,14
@@
/** \file
\r
*
\r
* Ethernet frame packet handling routines. This protocol handles the processing of raw Ethernet
\r
/** \file
\r
*
\r
* Ethernet frame packet handling routines. This protocol handles the processing of raw Ethernet
\r
- * frames sent and recei
e
ved, deferring the processing of subpacket protocols to the appropriate
\r
+ * frames sent and received, deferring the processing of subpacket protocols to the appropriate
\r
* protocol handlers, such as DHCP or ARP.
\r
*/
\r
\r
#include "Ethernet.h"
\r
\r
/* Global Variables: */
\r
* protocol handlers, such as DHCP or ARP.
\r
*/
\r
\r
#include "Ethernet.h"
\r
\r
/* Global Variables: */
\r
-/** Ethernet Frame buffer structure, to hold the incom
m
ing Ethernet frame from the host. */
\r
+/** Ethernet Frame buffer structure, to hold the incoming Ethernet frame from the host. */
\r
Ethernet_Frame_Info_t FrameIN;
\r
\r
/** Ethernet Frame buffer structure, to hold the outgoing Ethernet frame to the host. */
\r
Ethernet_Frame_Info_t FrameIN;
\r
\r
/** Ethernet Frame buffer structure, to hold the outgoing Ethernet frame to the host. */
\r
@@
-60,14
+60,14
@@
const IP_Address_t BroadcastIPAddress = {BROADCAST_IP_ADDRESS};
const IP_Address_t ClientIPAddress = {CLIENT_IP_ADDRESS};
\r
\r
\r
const IP_Address_t ClientIPAddress = {CLIENT_IP_ADDRESS};
\r
\r
\r
-/** Processes an incom
m
ing Ethernet frame, and writes the appropriate response to the output Ethernet
\r
+/** Processes an incoming Ethernet frame, and writes the appropriate response to the output Ethernet
\r
* frame buffer if the sub protocol handlers create a valid response.
\r
*/
\r
void Ethernet_ProcessPacket(void)
\r
{
\r
DecodeEthernetFrameHeader(FrameIN.FrameData);
\r
\r
* frame buffer if the sub protocol handlers create a valid response.
\r
*/
\r
void Ethernet_ProcessPacket(void)
\r
{
\r
DecodeEthernetFrameHeader(FrameIN.FrameData);
\r
\r
- /* Cast the incom
m
ing Ethernet frame to the Ethernet header type */
\r
+ /* Cast the incoming Ethernet frame to the Ethernet header type */
\r
Ethernet_Frame_Header_t* FrameINHeader = (Ethernet_Frame_Header_t*)&FrameIN.FrameData;
\r
Ethernet_Frame_Header_t* FrameOUTHeader = (Ethernet_Frame_Header_t*)&FrameOUT.FrameData;
\r
\r
Ethernet_Frame_Header_t* FrameINHeader = (Ethernet_Frame_Header_t*)&FrameIN.FrameData;
\r
Ethernet_Frame_Header_t* FrameOUTHeader = (Ethernet_Frame_Header_t*)&FrameOUT.FrameData;
\r
\r
@@
-91,7
+91,7
@@
void Ethernet_ProcessPacket(void)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- /* Protcol processing routine has filled a response, complete the ethernet frame header */
\r
+ /* Prot
o
col processing routine has filled a response, complete the ethernet frame header */
\r
if (RetSize > 0)
\r
{
\r
/* Fill out the response Ethernet frame header */
\r
if (RetSize > 0)
\r
{
\r
/* Fill out the response Ethernet frame header */
\r
diff --git
a/Demos/Device/RNDISEthernet/Ethernet.h
b/Demos/Device/RNDISEthernet/Ethernet.h
index
23fc325
..
b360f07
100644
(file)
--- a/
Demos/Device/RNDISEthernet/Ethernet.h
+++ b/
Demos/Device/RNDISEthernet/Ethernet.h
@@
-65,7
+65,7
@@
*/
\r
#define MAC_COMPARE(MAC1, MAC2) (memcmp(MAC1, MAC2, sizeof(MAC_Address_t)) == 0)
\r
\r
*/
\r
#define MAC_COMPARE(MAC1, MAC2) (memcmp(MAC1, MAC2, sizeof(MAC_Address_t)) == 0)
\r
\r
- /** Maximum size of an incom
m
ing or outgoing Ethernet frame in bytes */
\r
+ /** Maximum size of an incoming or outgoing Ethernet frame in bytes */
\r
#define ETHERNET_FRAME_SIZE_MAX 1500
\r
\r
/** Minimum size of an Ethernet packet in bytes, to conform to the Ethernet V2 packet standard */
\r
#define ETHERNET_FRAME_SIZE_MAX 1500
\r
\r
/** Minimum size of an Ethernet packet in bytes, to conform to the Ethernet V2 packet standard */
\r
diff --git
a/Demos/Device/RNDISEthernet/ICMP.c
b/Demos/Device/RNDISEthernet/ICMP.c
index
a155640
..
da4ffcf
100644
(file)
--- a/
Demos/Device/RNDISEthernet/ICMP.c
+++ b/
Demos/Device/RNDISEthernet/ICMP.c
@@
-40,7
+40,7
@@
/** Processes an ICMP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if the host is issuing a ICMP ECHO request.
\r
*
\r
/** Processes an ICMP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if the host is issuing a ICMP ECHO request.
\r
*
\r
- * \param InDataStart Pointer to the start of the incom
m
ing packet's ICMP header
\r
+ * \param InDataStart Pointer to the start of the incoming packet's ICMP header
\r
* \param OutDataStart Pointer to the start of the outgoing packet's ICMP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
* \param OutDataStart Pointer to the start of the outgoing packet's ICMP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
diff --git
a/Demos/Device/RNDISEthernet/IP.c
b/Demos/Device/RNDISEthernet/IP.c
index
65875bb
..
8fb0b44
100644
(file)
--- a/
Demos/Device/RNDISEthernet/IP.c
+++ b/
Demos/Device/RNDISEthernet/IP.c
@@
-39,7
+39,7
@@
/** Processes an IP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if one is created by a subprotocol handler.
\r
*
\r
/** Processes an IP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if one is created by a subprotocol handler.
\r
*
\r
- * \param InDataStart Pointer to the start of the incom
m
ing packet's IP header
\r
+ * \param InDataStart Pointer to the start of the incoming packet's IP header
\r
* \param OutDataStart Pointer to the start of the outgoing packet's IP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE if no
\r
* \param OutDataStart Pointer to the start of the outgoing packet's IP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE if no
\r
diff --git
a/Demos/Device/RNDISEthernet/IP.h
b/Demos/Device/RNDISEthernet/IP.h
index
be928e6
..
fc1a46a
100644
(file)
--- a/
Demos/Device/RNDISEthernet/IP.h
+++ b/
Demos/Device/RNDISEthernet/IP.h
@@
-51,7
+51,7
@@
/** Protocol IP address of the virtual server machine */
\r
#define SERVER_IP_ADDRESS { 10, 0, 0, 2}
\r
\r
/** Protocol IP address of the virtual server machine */
\r
#define SERVER_IP_ADDRESS { 10, 0, 0, 2}
\r
\r
- /** Protocol IP address of the broadcas
e
address */
\r
+ /** Protocol IP address of the broadcas
t
address */
\r
#define BROADCAST_IP_ADDRESS {0xFF, 0xFF, 0xFF, 0xFF}
\r
\r
/** Default Time To Live (TTL) value for sent packets, indicating the maximum allowable hops until their destination is reached */
\r
#define BROADCAST_IP_ADDRESS {0xFF, 0xFF, 0xFF, 0xFF}
\r
\r
/** Default Time To Live (TTL) value for sent packets, indicating the maximum allowable hops until their destination is reached */
\r
@@
-75,7
+75,7
@@
uint8_t TypeOfService; /**< Special service type identifier, indicating delay/throughput/reliability levels */
\r
uint16_t TotalLength; /**< Total length of the IP packet, in bytes */
\r
\r
uint8_t TypeOfService; /**< Special service type identifier, indicating delay/throughput/reliability levels */
\r
uint16_t TotalLength; /**< Total length of the IP packet, in bytes */
\r
\r
- uint16_t Identification; /**< Idenfication value for identifying fragmented packets */
\r
+ uint16_t Identification; /**< Iden
ti
fication value for identifying fragmented packets */
\r
unsigned int FragmentOffset : 13; /**< Offset of this IP fragment */
\r
unsigned int Flags : 3; /**< Fragment flags, to indicate if a packet is fragmented */
\r
\r
unsigned int FragmentOffset : 13; /**< Offset of this IP fragment */
\r
unsigned int Flags : 3; /**< Fragment flags, to indicate if a packet is fragmented */
\r
\r
diff --git
a/Demos/Device/RNDISEthernet/ProtocolDecoders.c
b/Demos/Device/RNDISEthernet/ProtocolDecoders.c
index
f0e6ebb
..
db5da3c
100644
(file)
--- a/
Demos/Device/RNDISEthernet/ProtocolDecoders.c
+++ b/
Demos/Device/RNDISEthernet/ProtocolDecoders.c
@@
-29,7
+29,7
@@
*/
\r
\r
/* Protocol decoders for Ethernet, TCP, IP, ICMP and ARP. Each of these routines
\r
*/
\r
\r
/* Protocol decoders for Ethernet, TCP, IP, ICMP and ARP. Each of these routines
\r
- accepts a header to the appropriate protocol and prints out pertient information
\r
+ accepts a header to the appropriate protocol and prints out perti
n
ent information
\r
on the packet through the serial port.
\r
\r
To disable printing of a specific protocol, define the token NO_DECODE_{Protocol}
\r
on the packet through the serial port.
\r
\r
To disable printing of a specific protocol, define the token NO_DECODE_{Protocol}
\r
@@
-39,7
+39,7
@@
/** \file
\r
*
\r
* Protocol decoding routines, for the plain-text decoding of Ethernet frames for debugging purposes.
\r
/** \file
\r
*
\r
* Protocol decoding routines, for the plain-text decoding of Ethernet frames for debugging purposes.
\r
- * Enabled protocol decoders will print incom
m
ing Ethernet frame contents through the USART in a human
\r
+ * Enabled protocol decoders will print incoming Ethernet frame contents through the USART in a human
\r
* readable format.
\r
*
\r
* Note that the USART is a slow transmission medium, and will slow down packet processing considerably.
\r
* readable format.
\r
*
\r
* Note that the USART is a slow transmission medium, and will slow down packet processing considerably.
\r
diff --git
a/Demos/Device/RNDISEthernet/RNDIS.h
b/Demos/Device/RNDISEthernet/RNDIS.h
index
7c75875
..
0d240ac
100644
(file)
--- a/
Demos/Device/RNDISEthernet/RNDIS.h
+++ b/
Demos/Device/RNDISEthernet/RNDIS.h
@@
-45,7
+45,7
@@
#include "Ethernet.h"
\r
\r
/* Macros: */
\r
#include "Ethernet.h"
\r
\r
/* Macros: */
\r
- /** Physical MAC Address of the USB net
o
work adapter */
\r
+ /** Physical MAC Address of the USB network adapter */
\r
#define ADAPTER_MAC_ADDRESS {0x02, 0x00, 0x02, 0x00, 0x02, 0x00}
\r
\r
/** Implemented RNDIS Version Major */
\r
#define ADAPTER_MAC_ADDRESS {0x02, 0x00, 0x02, 0x00, 0x02, 0x00}
\r
\r
/** Implemented RNDIS Version Major */
\r
diff --git
a/Demos/Device/RNDISEthernet/RNDISEthernet.c
b/Demos/Device/RNDISEthernet/RNDISEthernet.c
index
3f9bb18
..
98863a1
100644
(file)
--- a/
Demos/Device/RNDISEthernet/RNDISEthernet.c
+++ b/
Demos/Device/RNDISEthernet/RNDISEthernet.c
@@
-99,7
+99,7
@@
EVENT_HANDLER(USB_Connect)
}
\r
\r
/** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via
\r
}
\r
\r
/** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via
\r
- * the status LEDs and stops all the relev
e
nt tasks.
\r
+ * the status LEDs and stops all the relev
a
nt tasks.
\r
*/
\r
EVENT_HANDLER(USB_Disconnect)
\r
{
\r
*/
\r
EVENT_HANDLER(USB_Disconnect)
\r
{
\r
@@
-114,7
+114,7
@@
EVENT_HANDLER(USB_Disconnect)
}
\r
\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host sets the current configuration
\r
}
\r
\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host sets the current configuration
\r
- * of the USB device after enumeration, and configures the RNDIS device endpoints and starts the relev
e
nt tasks.
\r
+ * of the USB device after enumeration, and configures the RNDIS device endpoints and starts the relev
a
nt tasks.
\r
*/
\r
EVENT_HANDLER(USB_ConfigurationChanged)
\r
{
\r
*/
\r
EVENT_HANDLER(USB_ConfigurationChanged)
\r
{
\r
@@
-238,7
+238,7
@@
void UpdateStatus(uint8_t CurrentStatus)
}
\r
\r
/** Task to manage the sending and receiving of encapsulated RNDIS data and notifications. This removes the RNDIS
\r
}
\r
\r
/** Task to manage the sending and receiving of encapsulated RNDIS data and notifications. This removes the RNDIS
\r
- * wrapper from rec
ie
ved Ethernet frames and places them in the FrameIN global buffer, or adds the RNDIS wrapper
\r
+ * wrapper from rec
ei
ved Ethernet frames and places them in the FrameIN global buffer, or adds the RNDIS wrapper
\r
* to a frame in the FrameOUT global before sending the buffer contents to the host.
\r
*/
\r
TASK(RNDIS_Task)
\r
* to a frame in the FrameOUT global before sending the buffer contents to the host.
\r
*/
\r
TASK(RNDIS_Task)
\r
diff --git
a/Demos/Device/RNDISEthernet/TCP.c
b/Demos/Device/RNDISEthernet/TCP.c
index
b4a6534
..
f259aad
100644
(file)
--- a/
Demos/Device/RNDISEthernet/TCP.c
+++ b/
Demos/Device/RNDISEthernet/TCP.c
@@
-60,7
+60,7
@@
TASK(TCP_Task)
{
\r
/* Task to hand off TCP packets to and from the listening applications. */
\r
\r
{
\r
/* Task to hand off TCP packets to and from the listening applications. */
\r
\r
- /* Run each application in sequence, to process incom
m
ing and generate outgoing packets */
\r
+ /* Run each application in sequence, to process incoming and generate outgoing packets */
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
/* Find the corresponding port entry in the port table */
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
/* Find the corresponding port entry in the port table */
\r
@@
-179,7
+179,7
@@
void TCP_Init(void)
*/
\r
bool TCP_SetPortState(uint16_t Port, uint8_t State, void (*Handler)(TCP_ConnectionState_t*, TCP_ConnectionBuffer_t*))
\r
{
\r
*/
\r
bool TCP_SetPortState(uint16_t Port, uint8_t State, void (*Handler)(TCP_ConnectionState_t*, TCP_ConnectionBuffer_t*))
\r
{
\r
- /* Note, Port number should be specified in BIG endian to simplfy network code */
\r
+ /* Note, Port number should be specified in BIG endian to simpl
i
fy network code */
\r
\r
/* Check to see if the port entry is already in the port state table */
\r
for (uint8_t PTableEntry = 0; PTableEntry < MAX_TCP_CONNECTIONS; PTableEntry++)
\r
\r
/* Check to see if the port entry is already in the port state table */
\r
for (uint8_t PTableEntry = 0; PTableEntry < MAX_TCP_CONNECTIONS; PTableEntry++)
\r
@@
-226,7
+226,7
@@
bool TCP_SetPortState(uint16_t Port, uint8_t State, void (*Handler)(TCP_Connecti
*/
\r
uint8_t TCP_GetPortState(uint16_t Port)
\r
{
\r
*/
\r
uint8_t TCP_GetPortState(uint16_t Port)
\r
{
\r
- /* Note, Port number should be specified in BIG endian to simplfy network code */
\r
+ /* Note, Port number should be specified in BIG endian to simpl
i
fy network code */
\r
\r
for (uint8_t PTableEntry = 0; PTableEntry < MAX_TCP_CONNECTIONS; PTableEntry++)
\r
{
\r
\r
for (uint8_t PTableEntry = 0; PTableEntry < MAX_TCP_CONNECTIONS; PTableEntry++)
\r
{
\r
@@
-251,7
+251,7
@@
uint8_t TCP_GetPortState(uint16_t Port)
*/
\r
bool TCP_SetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort, uint8_t State)
\r
{
\r
*/
\r
bool TCP_SetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort, uint8_t State)
\r
{
\r
- /* Note, Port number should be specified in BIG endian to simplfy network code */
\r
+ /* Note, Port number should be specified in BIG endian to simpl
i
fy network code */
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
@@
-291,7
+291,7
@@
bool TCP_SetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t
*/
\r
uint8_t TCP_GetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort)
\r
{
\r
*/
\r
uint8_t TCP_GetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort)
\r
{
\r
- /* Note, Port number should be specified in BIG endian to simplfy network code */
\r
+ /* Note, Port number should be specified in BIG endian to simpl
i
fy network code */
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
@@
-318,7
+318,7
@@
uint8_t TCP_GetConnectionState(uint16_t Port, IP_Address_t RemoteAddress, uint16
*/
\r
TCP_ConnectionInfo_t* TCP_GetConnectionInfo(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort)
\r
{
\r
*/
\r
TCP_ConnectionInfo_t* TCP_GetConnectionInfo(uint16_t Port, IP_Address_t RemoteAddress, uint16_t RemotePort)
\r
{
\r
- /* Note, Port number should be specified in BIG endian to simplfy network code */
\r
+ /* Note, Port number should be specified in BIG endian to simpl
i
fy network code */
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
\r
for (uint8_t CSTableEntry = 0; CSTableEntry < MAX_TCP_CONNECTIONS; CSTableEntry++)
\r
{
\r
@@
-337,8
+337,8
@@
TCP_ConnectionInfo_t* TCP_GetConnectionInfo(uint16_t Port, IP_Address_t RemoteAd
/** Processes a TCP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if one is created by a application handler.
\r
*
\r
/** Processes a TCP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if one is created by a application handler.
\r
*
\r
- * \param IPHeaderInStart Pointer to the start of the incom
m
ing packet's IP header
\r
- * \param TCPHeaderInStart Pointer to the start of the incom
m
ing packet's TCP header
\r
+ * \param IPHeaderInStart Pointer to the start of the incoming packet's IP header
\r
+ * \param TCPHeaderInStart Pointer to the start of the incoming packet's TCP header
\r
* \param TCPHeaderOutStart Pointer to the start of the outgoing packet's TCP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE if no
\r
* \param TCPHeaderOutStart Pointer to the start of the outgoing packet's TCP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE if no
\r
@@
-357,7
+357,7
@@
int16_t TCP_ProcessTCPPacket(void* IPHeaderInStart, void* TCPHeaderInStart, void
\r
bool PacketResponse = false;
\r
\r
\r
bool PacketResponse = false;
\r
\r
- /* Check if the destination port is open and allows incom
m
ing connections */
\r
+ /* Check if the destination port is open and allows incoming connections */
\r
if (TCP_GetPortState(TCPHeaderIN->DestinationPort) == TCP_Port_Open)
\r
{
\r
/* Detect SYN from host to start a connection */
\r
if (TCP_GetPortState(TCPHeaderIN->DestinationPort) == TCP_Port_Open)
\r
{
\r
/* Detect SYN from host to start a connection */
\r
@@
-375,7
+375,7
@@
int16_t TCP_ProcessTCPPacket(void* IPHeaderInStart, void* TCPHeaderInStart, void
}
\r
else
\r
{
\r
}
\r
else
\r
{
\r
- /* Process the incom
m
ing TCP packet based on the current connection state for the sender and port */
\r
+ /* Process the incoming TCP packet based on the current connection state for the sender and port */
\r
switch (TCP_GetConnectionState(TCPHeaderIN->DestinationPort, IPHeaderIN->SourceAddress, TCPHeaderIN->SourcePort))
\r
{
\r
case TCP_Connection_Listen:
\r
switch (TCP_GetConnectionState(TCPHeaderIN->DestinationPort, IPHeaderIN->SourceAddress, TCPHeaderIN->SourcePort))
\r
{
\r
case TCP_Connection_Listen:
\r
@@
-470,7
+470,7
@@
int16_t TCP_ProcessTCPPacket(void* IPHeaderInStart, void* TCPHeaderInStart, void
}
\r
else
\r
{
\r
}
\r
else
\r
{
\r
- /* Buffer is currently in use by the application, defer processing of the incom
m
ing packet */
\r
+ /* Buffer is currently in use by the application, defer processing of the incoming packet */
\r
return NO_PROCESS;
\r
}
\r
}
\r
return NO_PROCESS;
\r
}
\r
}
\r
@@
-591,7
+591,7
@@
static uint16_t TCP_Checksum16(void* TCPHeaderOutStart, IP_Address_t SourceAddre
{
\r
uint32_t Checksum = 0;
\r
\r
{
\r
uint32_t Checksum = 0;
\r
\r
- /* TCP/IP checksums are the addition of the one's compliment of each word including the IP psudo-header,
\r
+ /* TCP/IP checksums are the addition of the one's compliment of each word including the IP ps
e
udo-header,
\r
complimented */
\r
\r
Checksum += ((uint16_t*)&SourceAddress)[0];
\r
complimented */
\r
\r
Checksum += ((uint16_t*)&SourceAddress)[0];
\r
diff --git
a/Demos/Device/RNDISEthernet/TCP.h
b/Demos/Device/RNDISEthernet/TCP.h
index
25fa657
..
d4b72a5
100644
(file)
--- a/
Demos/Device/RNDISEthernet/TCP.h
+++ b/
Demos/Device/RNDISEthernet/TCP.h
@@
-224,7
+224,7
@@
unsigned char Reserved : 4; /**< Reserved, must be all 0 */
\r
unsigned char DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */
\r
uint8_t Flags; /**< TCP packet flags */
\r
unsigned char Reserved : 4; /**< Reserved, must be all 0 */
\r
unsigned char DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */
\r
uint8_t Flags; /**< TCP packet flags */
\r
- uint16_t WindowSize; /**< Current data window size (bytes remaning in reception buffer) */
\r
+ uint16_t WindowSize; /**< Current data window size (bytes rema
i
ning in reception buffer) */
\r
\r
uint16_t Checksum; /**< TCP checksum */
\r
uint16_t UrgentPointer; /**< Urgent data pointer */
\r
\r
uint16_t Checksum; /**< TCP checksum */
\r
uint16_t UrgentPointer; /**< Urgent data pointer */
\r
diff --git
a/Demos/Device/RNDISEthernet/UDP.c
b/Demos/Device/RNDISEthernet/UDP.c
index
3e1f939
..
1f571c3
100644
(file)
--- a/
Demos/Device/RNDISEthernet/UDP.c
+++ b/
Demos/Device/RNDISEthernet/UDP.c
@@
-40,8
+40,8
@@
/** Processes a UDP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if a subprotocol handler has created a response packet.
\r
*
\r
/** Processes a UDP packet inside an Ethernet frame, and writes the appropriate response
\r
* to the output Ethernet frame if a subprotocol handler has created a response packet.
\r
*
\r
- * \param IPHeaderInStart Pointer to the start of the incom
m
ing packet's IP header
\r
- * \param UDPHeaderInStart Pointer to the start of the incom
m
ing packet's UDP header
\r
+ * \param IPHeaderInStart Pointer to the start of the incoming packet's IP header
\r
+ * \param UDPHeaderInStart Pointer to the start of the incoming packet's UDP header
\r
* \param UDPHeaderOutStart Pointer to the start of the outgoing packet's UDP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
* \param UDPHeaderOutStart Pointer to the start of the outgoing packet's UDP header
\r
*
\r
* \return The number of bytes written to the out Ethernet frame if any, NO_RESPONSE otherwise
\r
diff --git
a/Demos/Device/USBtoSerial/Descriptors.c
b/Demos/Device/USBtoSerial/Descriptors.c
index
03d4ed9
..
67fb4e9
100644
(file)
--- a/
Demos/Device/USBtoSerial/Descriptors.c
+++ b/
Demos/Device/USBtoSerial/Descriptors.c
@@
-216,7
+216,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/Device/USBtoSerial/RingBuff.h
b/Demos/Device/USBtoSerial/RingBuff.h
index
4b6bfde
..
23288d8
100644
(file)
--- a/
Demos/Device/USBtoSerial/RingBuff.h
+++ b/
Demos/Device/USBtoSerial/RingBuff.h
@@
-29,8
+29,8
@@
*/
\r
\r
/* Buffer Configuration: */
\r
*/
\r
\r
/* Buffer Configuration: */
\r
- /* Buffer length - select static size of created ringbuffers: */
\r
- #define BUFF_STATICSIZE 128 // Set to the static ring
buffer size for all ring
buffers (place size after define)
\r
+ /* Buffer length - select static size of created ring
buffers: */
\r
+ #define BUFF_STATICSIZE 128 // Set to the static ring
buffer size for all ring
buffers (place size after define)
\r
\r
/* Volatile mode - uncomment to make buffers volatile, for use in ISRs, etc: */
\r
#define BUFF_VOLATILE // Uncomment to cause all ring buffers to become volatile (and atomic if multi-byte) in access
\r
\r
/* Volatile mode - uncomment to make buffers volatile, for use in ISRs, etc: */
\r
#define BUFF_VOLATILE // Uncomment to cause all ring buffers to become volatile (and atomic if multi-byte) in access
\r
@@
-40,9
+40,9
@@
// #define BUFF_DROPNEW // Uncomment to cause full ring buffers to drop the new character when full
\r
// #define BUFF_NODROPCHECK // Uncomment to ignore full ring buffer checks - checking left to user!
\r
\r
// #define BUFF_DROPNEW // Uncomment to cause full ring buffers to drop the new character when full
\r
// #define BUFF_NODROPCHECK // Uncomment to ignore full ring buffer checks - checking left to user!
\r
\r
- /* Underflow behaviour - select behaviour when Buffer_GetElement is called with an empty ringbuffer: */
\r
- //#define BUFF_EMPTYRETURNSZERO // Uncomment to return 0 when an empty ringbuffer is read
\r
- #define BUFF_NOEMPTYCHECK // Uncomment to disable checking of empty ringbuffers - checking left to user!
\r
+ /* Underflow behaviour - select behaviour when Buffer_GetElement is called with an empty ring
buffer: */
\r
+ //#define BUFF_EMPTYRETURNSZERO // Uncomment to return 0 when an empty ring
buffer is read
\r
+ #define BUFF_NOEMPTYCHECK // Uncomment to disable checking of empty ring
buffers - checking left to user!
\r
\r
/* Buffer storage type - set the datatype for the stored data */
\r
#define BUFF_DATATYPE uint8_t // Change to the data type that is going to be stored into the buffer
\r
\r
/* Buffer storage type - set the datatype for the stored data */
\r
#define BUFF_DATATYPE uint8_t // Change to the data type that is going to be stored into the buffer
\r
diff --git
a/Demos/Device/USBtoSerial/USBtoSerial.c
b/Demos/Device/USBtoSerial/USBtoSerial.c
index
c7c9e4b
..
a9f0434
100644
(file)
--- a/
Demos/Device/USBtoSerial/USBtoSerial.c
+++ b/
Demos/Device/USBtoSerial/USBtoSerial.c
@@
-79,7
+79,7
@@
int main(void)
LEDs_Init();
\r
ReconfigureUSART();
\r
\r
LEDs_Init();
\r
ReconfigureUSART();
\r
\r
- /* Ringbuffer Initialization */
\r
+ /* Ring
buffer Initialization */
\r
Buffer_Initialize(&Rx_Buffer);
\r
Buffer_Initialize(&Tx_Buffer);
\r
\r
Buffer_Initialize(&Rx_Buffer);
\r
Buffer_Initialize(&Tx_Buffer);
\r
\r
diff --git
a/Demos/Device/USBtoSerial/USBtoSerial.h
b/Demos/Device/USBtoSerial/USBtoSerial.h
index
3fb6d7d
..
0926600
100644
(file)
--- a/
Demos/Device/USBtoSerial/USBtoSerial.h
+++ b/
Demos/Device/USBtoSerial/USBtoSerial.h
@@
-39,7
+39,7
@@
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
/* Includes: */
\r
#include <avr/io.h>
\r
#include <avr/wdt.h>
\r
- #include <avr/interrupt.h>
+ #include <avr/interrupt.h>
\r
#include <avr/power.h>
\r
\r
#include "Descriptors.h"
\r
#include <avr/power.h>
\r
\r
#include "Descriptors.h"
\r
@@
-99,17
+99,17
@@
#define CONTROL_LINE_IN_RING (1 << 3)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
#define CONTROL_LINE_IN_RING (1 << 3)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a framing error has ocurred on the virtual serial port.
\r
+ * to indicate that a framing error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_FRAMEERROR (1 << 4)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
*/
\r
#define CONTROL_LINE_IN_FRAMEERROR (1 << 4)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a parity error has ocurred on the virtual serial port.
\r
+ * to indicate that a parity error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_PARITYERROR (1 << 5)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
*/
\r
#define CONTROL_LINE_IN_PARITYERROR (1 << 5)
\r
\r
/** Mask for use with the a NOTIF_SerialState class specific notification from the device to the host,
\r
- * to indicate that a data overrun error has ocurred on the virtual serial port.
\r
+ * to indicate that a data overrun error has oc
c
urred on the virtual serial port.
\r
*/
\r
#define CONTROL_LINE_IN_OVERRUNERROR (1 << 6)
\r
\r
*/
\r
#define CONTROL_LINE_IN_OVERRUNERROR (1 << 6)
\r
\r
@@
-139,7
+139,7
@@
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the
\r
* CDCDevice_LineCodingParity_t enum
\r
*/
\r
- uint8_t DataBits; /**< Bits of data per charater of the virtual serial port */
\r
+ uint8_t DataBits; /**< Bits of data per chara
c
ter of the virtual serial port */
\r
} CDC_Line_Coding_t;
\r
\r
/** Type define for a CDC notification, sent to the host via the CDC notification endpoint to indicate a
\r
} CDC_Line_Coding_t;
\r
\r
/** Type define for a CDC notification, sent to the host via the CDC notification endpoint to indicate a
\r
diff --git
a/Demos/Host/CDCHost/CDCHost.c
b/Demos/Host/CDCHost/CDCHost.c
index
1f05ecb
..
a51f597
100644
(file)
--- a/
Demos/Host/CDCHost/CDCHost.c
+++ b/
Demos/Host/CDCHost/CDCHost.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"CDC Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"CDC Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-196,7
+196,7
@@
TASK(USB_CDC_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-248,7
+248,7
@@
TASK(USB_CDC_Host)
uint16_t BufferLength = Pipe_BytesInPipe();
\r
uint8_t Buffer[BufferLength];
\r
\r
uint16_t BufferLength = Pipe_BytesInPipe();
\r
uint8_t Buffer[BufferLength];
\r
\r
- /* Read in the pipe data to the tempoary buffer */
\r
+ /* Read in the pipe data to the tempo
r
ary buffer */
\r
Pipe_Read_Stream_LE(Buffer, BufferLength);
\r
\r
/* Clear the pipe after it is read, ready for the next packet */
\r
Pipe_Read_Stream_LE(Buffer, BufferLength);
\r
\r
/* Clear the pipe after it is read, ready for the next packet */
\r
diff --git
a/Demos/Host/CDCHost/ConfigDescriptor.h
b/Demos/Host/CDCHost/ConfigDescriptor.h
index
04d71aa
..
0ba6148
100644
(file)
--- a/
Demos/Host/CDCHost/ConfigDescriptor.h
+++ b/
Demos/Host/CDCHost/ConfigDescriptor.h
@@
-73,7
+73,7
@@
DescriptorTooLarge = 2, /**< The device's Configuration Descriptor is too large to process */
\r
InvalidConfigDataReturned = 3, /**< The device returned an invalid Configuration Descriptor */
\r
NoCDCInterfaceFound = 4, /**< A compatible CDC interface was not found in the device's Configuration Descriptor */
\r
DescriptorTooLarge = 2, /**< The device's Configuration Descriptor is too large to process */
\r
InvalidConfigDataReturned = 3, /**< The device returned an invalid Configuration Descriptor */
\r
NoCDCInterfaceFound = 4, /**< A compatible CDC interface was not found in the device's Configuration Descriptor */
\r
- NoEndpointFound = 5, /**< Cmpatible CDC endpoints were not found in the device's CDC interface */
\r
+ NoEndpointFound = 5, /**< C
o
mpatible CDC endpoints were not found in the device's CDC interface */
\r
};
\r
\r
/* Configuration Descriptor Comparison Functions: */
\r
};
\r
\r
/* Configuration Descriptor Comparison Functions: */
\r
diff --git
a/Demos/Host/GenericHIDHost/GenericHIDHost.c
b/Demos/Host/GenericHIDHost/GenericHIDHost.c
index
c703039
..
778b8f6
100644
(file)
--- a/
Demos/Host/GenericHIDHost/GenericHIDHost.c
+++ b/
Demos/Host/GenericHIDHost/GenericHIDHost.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Generic HID Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Generic HID Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-288,7
+288,7
@@
TASK(USB_HID_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
diff --git
a/Demos/Host/KeyboardHost/KeyboardHost.c
b/Demos/Host/KeyboardHost/KeyboardHost.c
index
13aed7e
..
f73e568
100644
(file)
--- a/
Demos/Host/KeyboardHost/KeyboardHost.c
+++ b/
Demos/Host/KeyboardHost/KeyboardHost.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Keyboard Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Keyboard Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-263,7
+263,7
@@
TASK(USB_Keyboard_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-310,7
+310,7
@@
TASK(USB_Keyboard_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Protocol).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Protocol).\r\n"));
\r
diff --git
a/Demos/Host/KeyboardHostWithParser/HIDReport.h
b/Demos/Host/KeyboardHostWithParser/HIDReport.h
index
5e18313
..
7c59138
100644
(file)
--- a/
Demos/Host/KeyboardHostWithParser/HIDReport.h
+++ b/
Demos/Host/KeyboardHostWithParser/HIDReport.h
@@
-51,7
+51,7
@@
{
\r
ParseSuccessful = 0, /**< HID report descriptor parsed successfully */
\r
ParseError = 1, /**< Failed to fully process the HID report descriptor */
\r
{
\r
ParseSuccessful = 0, /**< HID report descriptor parsed successfully */
\r
ParseError = 1, /**< Failed to fully process the HID report descriptor */
\r
- ParseControlError = 2, /**< Control error occured while trying to read the device HID descriptor */
\r
+ ParseControlError = 2, /**< Control error occur
r
ed while trying to read the device HID descriptor */
\r
};
\r
\r
/* Type Defines: */
\r
};
\r
\r
/* Type Defines: */
\r
diff --git
a/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c
index
f7a0087
..
eefd2fa
100644
(file)
--- a/
Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Keyboard Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Keyboard Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-199,7
+199,7
@@
TASK(USB_Keyboard_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-255,7
+255,7
@@
TASK(USB_Keyboard_Host)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- /* All LEDs off - ready to indicate keypresses */
\r
+ /* All LEDs off - ready to indicate key
presses */
\r
UpdateStatus(Status_USBReady);
\r
\r
puts_P(PSTR("Keyboard Enumerated.\r\n"));
\r
UpdateStatus(Status_USBReady);
\r
\r
puts_P(PSTR("Keyboard Enumerated.\r\n"));
\r
@@
-282,7
+282,7
@@
TASK(USB_Keyboard_Host)
/* Check each HID report item in turn, looking for keyboard scan code reports */
\r
for (uint8_t ReportNumber = 0; ReportNumber < HIDReportInfo.TotalReportItems; ReportNumber++)
\r
{
\r
/* Check each HID report item in turn, looking for keyboard scan code reports */
\r
for (uint8_t ReportNumber = 0; ReportNumber < HIDReportInfo.TotalReportItems; ReportNumber++)
\r
{
\r
- /* Create a tempoary item pointer to the next report item */
\r
+ /* Create a tempo
r
ary item pointer to the next report item */
\r
HID_ReportItem_t* ReportItem = &HIDReportInfo.ReportItems[ReportNumber];
\r
\r
/* Check if the current report item is a keyboard scancode */
\r
HID_ReportItem_t* ReportItem = &HIDReportInfo.ReportItems[ReportNumber];
\r
\r
/* Check if the current report item is a keyboard scancode */
\r
diff --git
a/Demos/Host/MassStorageHost/MassStorageHost.c
b/Demos/Host/MassStorageHost/MassStorageHost.c
index
d042b78
..
a7b550c
100644
(file)
--- a/
Demos/Host/MassStorageHost/MassStorageHost.c
+++ b/
Demos/Host/MassStorageHost/MassStorageHost.c
@@
-74,7
+74,7
@@
int main(void)
/* Indicate USB not ready */
\r
UpdateStatus(Status_USBNotReady);
\r
\r
/* Indicate USB not ready */
\r
UpdateStatus(Status_USBNotReady);
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"MassStore Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"MassStore Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-137,7
+137,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-170,7
+170,7
@@
TASK(USB_MassStore_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-222,7
+222,7
@@
TASK(USB_MassStore_Host)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = MassStore_GetMaxLUN(&MassStore_MaxLUNIndex)) != HOST_SENDCONTROL_Successful)
\r
{
\r
ShowDiskReadError(PSTR("Get Max LUN"), ErrorCode);
\r
if ((ErrorCode = MassStore_GetMaxLUN(&MassStore_MaxLUNIndex)) != HOST_SENDCONTROL_Successful)
\r
{
\r
ShowDiskReadError(PSTR("Get Max LUN"), ErrorCode);
\r
@@
-240,7
+240,7
@@
TASK(USB_MassStore_Host)
}
\r
\r
/* Get sense data from the device - many devices will not accept any other commands until the sense data
\r
}
\r
\r
/* Get sense data from the device - many devices will not accept any other commands until the sense data
\r
- * is read - both on startup and after a failed command */
\r
+ * is read - both on start
-
up and after a failed command */
\r
SCSI_Request_Sense_Response_t SenseData;
\r
if ((ErrorCode = MassStore_RequestSense(0, &SenseData)) != 0)
\r
{
\r
SCSI_Request_Sense_Response_t SenseData;
\r
if ((ErrorCode = MassStore_RequestSense(0, &SenseData)) != 0)
\r
{
\r
@@
-397,7
+397,7
@@
void UpdateStatus(uint8_t CurrentStatus)
LEDs_SetAllLEDs(LEDMask);
\r
}
\r
\r
LEDs_SetAllLEDs(LEDMask);
\r
}
\r
\r
-/** Indicates that a communication error has ocurred with the attached Mass Storage Device,
\r
+/** Indicates that a communication error has oc
c
urred with the attached Mass Storage Device,
\r
* printing error codes to the serial port and waiting until the device is removed before
\r
* continuing.
\r
*
\r
* printing error codes to the serial port and waiting until the device is removed before
\r
* continuing.
\r
*
\r
diff --git
a/Demos/Host/MassStorageHost/MassStorageHost.h
b/Demos/Host/MassStorageHost/MassStorageHost.h
index
b130cfe
..
33e2d25
100644
(file)
--- a/
Demos/Host/MassStorageHost/MassStorageHost.h
+++ b/
Demos/Host/MassStorageHost/MassStorageHost.h
@@
-66,7
+66,7
@@
Status_EnumerationError = 3, /**< Software error while enumerating the attached USB device */
\r
Status_HardwareError = 4, /**< Hardware error while enumerating the attached USB device */
\r
Status_Busy = 5, /**< Busy reading or writing to the attached Mass Storage device */
\r
Status_EnumerationError = 3, /**< Software error while enumerating the attached USB device */
\r
Status_HardwareError = 4, /**< Hardware error while enumerating the attached USB device */
\r
Status_Busy = 5, /**< Busy reading or writing to the attached Mass Storage device */
\r
- Status_SCSICommandError = 6, /**< Error sending or rec
ie
ving a command to or from the attached SCSI device */
\r
+ Status_SCSICommandError = 6, /**< Error sending or rec
ei
ving a command to or from the attached SCSI device */
\r
};
\r
\r
/* Task Definitions: */
\r
};
\r
\r
/* Task Definitions: */
\r
diff --git
a/Demos/Host/MassStorageHost/MassStoreCommands.c
b/Demos/Host/MassStorageHost/MassStoreCommands.c
index
f4143ad
..
700d969
100644
(file)
--- a/
Demos/Host/MassStorageHost/MassStoreCommands.c
+++ b/
Demos/Host/MassStorageHost/MassStoreCommands.c
@@
-37,8
+37,8
@@
* to a FAT library to give file-level access to an attached device's contents.
\r
*
\r
* \note Many Mass Storage devices on the market are non-compliant to the
\r
* to a FAT library to give file-level access to an attached device's contents.
\r
*
\r
* \note Many Mass Storage devices on the market are non-compliant to the
\r
- * specifications and thus can pro
o
ve difficult to interface with. It
\r
- * may be nec
ce
sary to retry the functions in the module several times
\r
+ * specifications and thus can prove difficult to interface with. It
\r
+ * may be nec
es
sary to retry the functions in the module several times
\r
* after they have returned and error to successfully send the command
\r
* to the device. Some devices may also need to have the stream function
\r
* timeout period extended beyond 100ms (some badly designed devices exceeding
\r
* after they have returned and error to successfully send the command
\r
* to the device. Some devices may also need to have the stream function
\r
* timeout period extended beyond 100ms (some badly designed devices exceeding
\r
@@
-52,17
+52,17
@@
\r
/* Globals: */
\r
/** Current CBW to send to the device. This is automatically filled by the routines
\r
\r
/* Globals: */
\r
/** Current CBW to send to the device. This is automatically filled by the routines
\r
- * in this file and is not externally access
a
ble.
\r
+ * in this file and is not externally access
i
ble.
\r
*/
\r
static CommandBlockWrapper_t SCSICommandBlock;
\r
\r
/** Current CSW received from the device. This is automatically filled by the routines
\r
*/
\r
static CommandBlockWrapper_t SCSICommandBlock;
\r
\r
/** Current CSW received from the device. This is automatically filled by the routines
\r
- * in this file and is externally access
a
ble so that the return codes may be checked.
\r
+ * in this file and is externally access
i
ble so that the return codes may be checked.
\r
*/
\r
CommandStatusWrapper_t SCSICommandStatus;
\r
\r
/** Current Tag value used in issued CBWs to the device. This is automatically incremented
\r
*/
\r
CommandStatusWrapper_t SCSICommandStatus;
\r
\r
/** Current Tag value used in issued CBWs to the device. This is automatically incremented
\r
- * by the routines in this file, and is not externally access
a
ble.
\r
+ * by the routines in this file, and is not externally access
i
ble.
\r
*/
\r
static uint32_t MassStore_Tag = 1;
\r
\r
*/
\r
static uint32_t MassStore_Tag = 1;
\r
\r
@@
-122,7
+122,7
@@
static uint8_t MassStore_WaitForDataReceived(void)
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))
\r
{
\r
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))
\r
{
\r
- /* Clear the flag and decrement the timout period counter */
\r
+ /* Clear the flag and decrement the tim
e
out period counter */
\r
USB_INT_Clear(USB_INT_HSOFI);
\r
TimeoutMSRem--;
\r
\r
USB_INT_Clear(USB_INT_HSOFI);
\r
TimeoutMSRem--;
\r
\r
diff --git
a/Demos/Host/MassStorageHost/MassStoreCommands.h
b/Demos/Host/MassStorageHost/MassStoreCommands.h
index
adab4fb
..
97bbe29
100644
(file)
--- a/
Demos/Host/MassStorageHost/MassStoreCommands.h
+++ b/
Demos/Host/MassStorageHost/MassStoreCommands.h
@@
-54,7
+54,7
@@
/** Command Block Wrapper signature byte, for verification of valid CBW blocks */
\r
#define CBW_SIGNATURE 0x43425355UL
\r
\r
/** Command Block Wrapper signature byte, for verification of valid CBW blocks */
\r
#define CBW_SIGNATURE 0x43425355UL
\r
\r
- /** Command Stat
u
c Wrapper signature byte, for verification of valid CSW blocks */
\r
+ /** Command Stat
i
c Wrapper signature byte, for verification of valid CSW blocks */
\r
#define CSW_SIGNATURE 0x53425355UL
\r
\r
/** Data direction mask for the Flags field of a CBW, indicating Host-to-Device transfer direction */
\r
#define CSW_SIGNATURE 0x53425355UL
\r
\r
/** Data direction mask for the Flags field of a CBW, indicating Host-to-Device transfer direction */
\r
@@
-98,13
+98,13
@@
{
\r
uint32_t Signature; /**< Command status signature, always equal to CSW_SIGNATURE */
\r
uint32_t Tag; /**< Current CBW tag, to positively associate a CBW with a CSW */
\r
{
\r
uint32_t Signature; /**< Command status signature, always equal to CSW_SIGNATURE */
\r
uint32_t Tag; /**< Current CBW tag, to positively associate a CBW with a CSW */
\r
- uint32_t DataTransferResidue; /**< Length of data not transfered */
\r
+ uint32_t DataTransferResidue; /**< Length of data not transfer
r
ed */
\r
uint8_t Status; /**< Command status, a value from the MassStorageHost_CommandStatusCodes_t enum */
\r
} CommandStatusWrapper_t;
\r
\r
/** Type define for a SCSI Sense structure. Structures of this type are filled out by the
\r
* device via the MassStore_RequestSense() function, indicating the current sense data of the
\r
uint8_t Status; /**< Command status, a value from the MassStorageHost_CommandStatusCodes_t enum */
\r
} CommandStatusWrapper_t;
\r
\r
/** Type define for a SCSI Sense structure. Structures of this type are filled out by the
\r
* device via the MassStore_RequestSense() function, indicating the current sense data of the
\r
- * device (giving expli
tic
error codes for the last issued command). For details of the
\r
+ * device (giving expli
cit
error codes for the last issued command). For details of the
\r
* structure contents, refer to the SCSI specifications.
\r
*/
\r
typedef struct
\r
* structure contents, refer to the SCSI specifications.
\r
*/
\r
typedef struct
\r
diff --git
a/Demos/Host/MouseHost/MouseHost.c
b/Demos/Host/MouseHost/MouseHost.c
index
dd7ff73
..
29cbd87
100644
(file)
--- a/
Demos/Host/MouseHost/MouseHost.c
+++ b/
Demos/Host/MouseHost/MouseHost.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Mouse Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Mouse Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-259,7
+259,7
@@
TASK(USB_Mouse_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-306,7
+306,7
@@
TASK(USB_Mouse_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Protocol).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Protocol).\r\n"));
\r
diff --git
a/Demos/Host/MouseHostWithParser/HIDReport.h
b/Demos/Host/MouseHostWithParser/HIDReport.h
index
8ebb97d
..
aa259a1
100644
(file)
--- a/
Demos/Host/MouseHostWithParser/HIDReport.h
+++ b/
Demos/Host/MouseHostWithParser/HIDReport.h
@@
-60,7
+60,7
@@
{
\r
ParseSuccessful = 0, /**< HID report descriptor parsed successfully */
\r
ParseError = 1, /**< Failed to fully process the HID report descriptor */
\r
{
\r
ParseSuccessful = 0, /**< HID report descriptor parsed successfully */
\r
ParseError = 1, /**< Failed to fully process the HID report descriptor */
\r
- ParseControlError = 2, /**< Control error occured while trying to read the device HID descriptor */
\r
+ ParseControlError = 2, /**< Control error occur
r
ed while trying to read the device HID descriptor */
\r
};
\r
\r
/* Type Defines: */
\r
};
\r
\r
/* Type Defines: */
\r
diff --git
a/Demos/Host/MouseHostWithParser/MouseHostWithParser.c
b/Demos/Host/MouseHostWithParser/MouseHostWithParser.c
index
5ccda49
..
79cecdf
100644
(file)
--- a/
Demos/Host/MouseHostWithParser/MouseHostWithParser.c
+++ b/
Demos/Host/MouseHostWithParser/MouseHostWithParser.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Mouse Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Mouse Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-200,7
+200,7
@@
TASK(USB_Mouse_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control Error (Set Configuration).\r\n"));
\r
@@
-256,7
+256,7
@@
TASK(USB_Mouse_Host)
break;
\r
}
\r
\r
break;
\r
}
\r
\r
- /* All LEDs off - ready to indicate keypresses */
\r
+ /* All LEDs off - ready to indicate key
presses */
\r
UpdateStatus(Status_USBReady);
\r
\r
puts_P(PSTR("Mouse Enumerated.\r\n"));
\r
UpdateStatus(Status_USBReady);
\r
\r
puts_P(PSTR("Mouse Enumerated.\r\n"));
\r
@@
-285,7
+285,7
@@
TASK(USB_Mouse_Host)
/* Check each HID report item in turn, looking for mouse X/Y/button reports */
\r
for (uint8_t ReportNumber = 0; ReportNumber < HIDReportInfo.TotalReportItems; ReportNumber++)
\r
{
\r
/* Check each HID report item in turn, looking for mouse X/Y/button reports */
\r
for (uint8_t ReportNumber = 0; ReportNumber < HIDReportInfo.TotalReportItems; ReportNumber++)
\r
{
\r
- /* Create a tempoary item pointer to the next report item */
\r
+ /* Create a tempo
r
ary item pointer to the next report item */
\r
HID_ReportItem_t* ReportItem = &HIDReportInfo.ReportItems[ReportNumber];
\r
\r
bool FoundData;
\r
HID_ReportItem_t* ReportItem = &HIDReportInfo.ReportItems[ReportNumber];
\r
\r
bool FoundData;
\r
diff --git
a/Demos/Host/StillImageHost/StillImageCommands.c
b/Demos/Host/StillImageHost/StillImageCommands.c
index
4d4c0b1
..
be6f748
100644
(file)
--- a/
Demos/Host/StillImageHost/StillImageCommands.c
+++ b/
Demos/Host/StillImageHost/StillImageCommands.c
@@
-111,7
+111,7
@@
uint8_t SImage_RecieveBlockHeader(void)
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))
\r
{
\r
/* Check to see if a new frame has been issued (1ms elapsed) */
\r
if (USB_INT_HasOccurred(USB_INT_HSOFI))
\r
{
\r
- /* Clear the flag and decrement the timout period counter */
\r
+ /* Clear the flag and decrement the tim
e
out period counter */
\r
USB_INT_Clear(USB_INT_HSOFI);
\r
TimeoutMSRem--;
\r
\r
USB_INT_Clear(USB_INT_HSOFI);
\r
TimeoutMSRem--;
\r
\r
diff --git
a/Demos/Host/StillImageHost/StillImageCommands.h
b/Demos/Host/StillImageHost/StillImageCommands.h
index
5679dea
..
2ac6afd
100644
(file)
--- a/
Demos/Host/StillImageHost/StillImageCommands.h
+++ b/
Demos/Host/StillImageHost/StillImageCommands.h
@@
-62,7
+62,7
@@
(params * sizeof(PIMA_SendBlock.Params[0])))
\r
\r
/* Type Defines: */
\r
(params * sizeof(PIMA_SendBlock.Params[0])))
\r
\r
/* Type Defines: */
\r
- /** Type define for a PIMA container, use to send commands and recei
e
ve responses to and from an
\r
+ /** Type define for a PIMA container, use to send commands and receive responses to and from an
\r
* attached Still Image device.
\r
*/
\r
typedef struct
\r
* attached Still Image device.
\r
*/
\r
typedef struct
\r
diff --git
a/Demos/Host/StillImageHost/StillImageHost.c
b/Demos/Host/StillImageHost/StillImageHost.c
index
50b2054
..
787629c
100644
(file)
--- a/
Demos/Host/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/StillImageHost/StillImageHost.c
@@
-75,7
+75,7
@@
int main(void)
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
/* Initialize USB Subsystem */
\r
USB_Init();
\r
\r
- /* Startup message */
\r
+ /* Start
-
up message */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Still Image Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"Still Image Host Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-132,7
+132,7
@@
EVENT_HANDLER(USB_HostError)
for(;;);
\r
}
\r
\r
for(;;);
\r
}
\r
\r
-/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occured while
\r
+/** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occur
r
ed while
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
* enumerating an attached USB device.
\r
*/
\r
EVENT_HANDLER(USB_DeviceEnumerationFailed)
\r
@@
-165,7
+165,7
@@
TASK(USB_SImage_Host)
wLength: 0,
\r
};
\r
\r
wLength: 0,
\r
};
\r
\r
- /* Send the request, display error and wait for device deta
t
ch if request fails */
\r
+ /* Send the request, display error and wait for device detach if request fails */
\r
if (USB_Host_SendControlRequest(NULL) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control error.\r\n"));
\r
if (USB_Host_SendControlRequest(NULL) != HOST_SENDCONTROL_Successful)
\r
{
\r
puts_P(PSTR("Control error.\r\n"));
\r
@@
-223,7
+223,7
@@
TASK(USB_SImage_Host)
/* Send the GETDEVICEINFO block */
\r
SImage_SendBlockHeader();
\r
\r
/* Send the GETDEVICEINFO block */
\r
SImage_SendBlockHeader();
\r
\r
- /* Rec
ie
ve the response data block */
\r
+ /* Rec
ei
ve the response data block */
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
@@
-274,7
+274,7
@@
TASK(USB_SImage_Host)
UnicodeToASCII(DeviceInfoPos, DeviceVersion);
\r
printf_P(PSTR(" Device Version: %s\r\n"), DeviceVersion);
\r
\r
UnicodeToASCII(DeviceInfoPos, DeviceVersion);
\r
printf_P(PSTR(" Device Version: %s\r\n"), DeviceVersion);
\r
\r
- /* Rec
ie
ve the final response block from the device */
\r
+ /* Rec
ei
ve the final response block from the device */
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
@@
-302,7
+302,7
@@
TASK(USB_SImage_Host)
/* Send the OPENSESSION block, open a session with an ID of 0x0001 */
\r
SImage_SendBlockHeader();
\r
\r
/* Send the OPENSESSION block, open a session with an ID of 0x0001 */
\r
SImage_SendBlockHeader();
\r
\r
- /* Rec
ie
ve the response block from the device */
\r
+ /* Rec
ei
ve the response block from the device */
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
@@
-330,7
+330,7
@@
TASK(USB_SImage_Host)
/* Send the CLOSESESSION block, close the session with an ID of 0x0001 */
\r
SImage_SendBlockHeader();
\r
\r
/* Send the CLOSESESSION block, close the session with an ID of 0x0001 */
\r
SImage_SendBlockHeader();
\r
\r
- /* Rec
ie
ve the response block from the device */
\r
+ /* Rec
ei
ve the response block from the device */
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_ERROR_NoError)
\r
{
\r
ShowCommandError(ErrorCode, false);
\r
diff --git
a/Demos/OTG/TestApp/Descriptors.c
b/Demos/OTG/TestApp/Descriptors.c
index
fc56660
..
d515567
100644
(file)
--- a/
Demos/OTG/TestApp/Descriptors.c
+++ b/
Demos/OTG/TestApp/Descriptors.c
@@
-140,7
+140,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Demos/OTG/TestApp/TestApp.c
b/Demos/OTG/TestApp/TestApp.c
index
a66a728
..
49fdf67
100644
(file)
--- a/
Demos/OTG/TestApp/TestApp.c
+++ b/
Demos/OTG/TestApp/TestApp.c
@@
-80,7
+80,7
@@
int main(void)
/* Turn on interrupts */
\r
sei();
\r
\r
/* Turn on interrupts */
\r
sei();
\r
\r
- /* Startup message via USART */
\r
+ /* Start
-
up message via USART */
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"LUFA Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
puts_P(PSTR(ESC_RESET ESC_BG_WHITE ESC_INVERSE_ON ESC_ERASE_DISPLAY
\r
"LUFA Demo running.\r\n" ESC_INVERSE_OFF));
\r
\r
@@
-130,7
+130,7
@@
TASK(TestApp_CheckJoystick)
*/
\r
TASK(TestApp_CheckTemp)
\r
{
\r
*/
\r
TASK(TestApp_CheckTemp)
\r
{
\r
- static SchedulerDelayCounter_t DelayCounter = 10000; // Force immediate run on startup
\r
+ static SchedulerDelayCounter_t DelayCounter = 10000; // Force immediate run on start
-
up
\r
\r
/* Task runs every 10000 ticks, 10 seconds for this demo */
\r
if (Scheduler_HasDelayElapsed(10000, &DelayCounter))
\r
\r
/* Task runs every 10000 ticks, 10 seconds for this demo */
\r
if (Scheduler_HasDelayElapsed(10000, &DelayCounter))
\r
@@
-161,7
+161,7
@@
TASK(TestApp_CheckHWB)
/* Set flag, indicating that current pressed state has been handled */
\r
IsPressed = true;
\r
\r
/* Set flag, indicating that current pressed state has been handled */
\r
IsPressed = true;
\r
\r
- /* First start of the USB interface perm
ena
ntly blocks the joystick task */
\r
+ /* First start of the USB interface perm
ane
ntly blocks the joystick task */
\r
if (BlockingJoystickTask == false)
\r
{
\r
Scheduler_SetTaskMode(TestApp_CheckJoystick, TASK_STOP);
\r
if (BlockingJoystickTask == false)
\r
{
\r
Scheduler_SetTaskMode(TestApp_CheckJoystick, TASK_STOP);
\r
diff --git
a/LUFA/ChangeLog.txt
b/LUFA/ChangeLog.txt
index
4365350
..
036e031
100644
(file)
--- a/
LUFA/ChangeLog.txt
+++ b/
LUFA/ChangeLog.txt
@@
-13,6
+13,7
@@
* - KeyboardHost, MouseHost and GenericHIDHost demos now save and restore the currently selected pipe inside the pipe ISR
\r
* - Changed GenericHID device demo to use the LUFA scheduler, added INTERRUPT_DATA_ENDPOINT and INTERRUPT_CONTROL_ENDPOINT compile
\r
* time options
\r
* - KeyboardHost, MouseHost and GenericHIDHost demos now save and restore the currently selected pipe inside the pipe ISR
\r
* - Changed GenericHID device demo to use the LUFA scheduler, added INTERRUPT_DATA_ENDPOINT and INTERRUPT_CONTROL_ENDPOINT compile
\r
* time options
\r
+ * - All comments in the library, bootloaders, demos and projects have now been spell-checked and spelling mistakes/typos corrected
\r
*
\r
* \section Sec_ChangeLog090401 Version 090401
\r
*
\r
*
\r
* \section Sec_ChangeLog090401 Version 090401
\r
*
\r
diff --git
a/LUFA/Common/Common.h
b/LUFA/Common/Common.h
index
ed2d1bc
..
36d9e3f
100644
(file)
--- a/
LUFA/Common/Common.h
+++ b/
LUFA/Common/Common.h
@@
-31,7
+31,7
@@
/** \file
\r
*
\r
* This file contains macros which are common to all library elements, and which may be useful in user code. It
\r
/** \file
\r
*
\r
* This file contains macros which are common to all library elements, and which may be useful in user code. It
\r
- * also includes other common heade
e
s, such as Atomic.h, FunctionAttributes.h and BoardTypes.h.
\r
+ * also includes other common heade
r
s, such as Atomic.h, FunctionAttributes.h and BoardTypes.h.
\r
*/
\r
\r
#ifndef __COMMON_H__
\r
*/
\r
\r
#ifndef __COMMON_H__
\r
@@
-49,27
+49,27
@@
\r
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
\r
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
- /** Macro for encasing other multi-statment macros. This should be used along with an opening brace
\r
+ /** Macro for encasing other multi-stat
e
ment macros. This should be used along with an opening brace
\r
* before the start of any multi-statement macro, so that the macros contents as a whole are treated
\r
* before the start of any multi-statement macro, so that the macros contents as a whole are treated
\r
- * as a discre
ete block and not as a list of sepe
rate statements which may cause problems when used as
\r
- * a block (such as inline IF statments).
\r
+ * as a discre
te block and not as a list of sepa
rate statements which may cause problems when used as
\r
+ * a block (such as inline IF stat
e
ments).
\r
*/
\r
#define MACROS do
\r
\r
*/
\r
#define MACROS do
\r
\r
- /** Macro for encasing other multi-stat
ment macros. This should be used along with a prece
eding closing
\r
+ /** Macro for encasing other multi-stat
ement macros. This should be used along with a prec
eding closing
\r
* brace at the end of any multi-statement macro, so that the macros contents as a whole are treated
\r
* brace at the end of any multi-statement macro, so that the macros contents as a whole are treated
\r
- * as a discre
ete block and not as a list of sepe
rate statements which may cause problems when used as
\r
- * a block (such as inline IF statments).
\r
+ * as a discre
te block and not as a list of sepa
rate statements which may cause problems when used as
\r
+ * a block (such as inline IF stat
e
ments).
\r
*/
\r
#define MACROE while (0)
\r
\r
*/
\r
#define MACROE while (0)
\r
\r
- /** Defines a volatile NOP statment which cannot be optimized out by the compiler, and thus can always
\r
+ /** Defines a volatile NOP stat
e
ment which cannot be optimized out by the compiler, and thus can always
\r
* be set as a breakpoint in the resulting code. Useful for debugging purposes, where the optimizer
\r
* removes/reorders code to the point where break points cannot reliably be set.
\r
*/
\r
#define JTAG_DEBUG_POINT() asm volatile ("NOP" ::)
\r
\r
* be set as a breakpoint in the resulting code. Useful for debugging purposes, where the optimizer
\r
* removes/reorders code to the point where break points cannot reliably be set.
\r
*/
\r
#define JTAG_DEBUG_POINT() asm volatile ("NOP" ::)
\r
\r
- /** Defines an explicit JTAG break point in the resulting binary via the ASM BREAK statment. When
\r
+ /** Defines an explicit JTAG break point in the resulting binary via the ASM BREAK stat
e
ment. When
\r
* a JTAG is used, this causes the program execution to halt when reached until manually resumed. */
\r
#define JTAG_DEBUG_BREAK() asm volatile ("BREAK" ::)
\r
\r
* a JTAG is used, this causes the program execution to halt when reached until manually resumed. */
\r
#define JTAG_DEBUG_BREAK() asm volatile ("BREAK" ::)
\r
\r
diff --git
a/LUFA/Common/FunctionAttributes.h
b/LUFA/Common/FunctionAttributes.h
index
daa6c4a
..
cd40673
100644
(file)
--- a/
LUFA/Common/FunctionAttributes.h
+++ b/
LUFA/Common/FunctionAttributes.h
@@
-32,7
+32,7
@@
*
\r
* This file contains macros for applying GCC specific attributes to functions to control various optimizer
\r
* and code generation features of the compiler. Attributes may be placed in the function prototype in any
\r
*
\r
* This file contains macros for applying GCC specific attributes to functions to control various optimizer
\r
* and code generation features of the compiler. Attributes may be placed in the function prototype in any
\r
- * order, and multiple attributes can be specified for a single function via a space sep
e
rated list.
\r
+ * order, and multiple attributes can be specified for a single function via a space sep
a
rated list.
\r
*
\r
* \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
\r
* functionality.
\r
*
\r
* \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
\r
* functionality.
\r
@@
-49,11
+49,11
@@
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
/** Indicates to the compiler that the function can not ever return, so that any stack restoring or
\r
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
/** Indicates to the compiler that the function can not ever return, so that any stack restoring or
\r
- * return code may be om
mi
ted by the compiler in the resulting binary.
\r
+ * return code may be om
it
ted by the compiler in the resulting binary.
\r
*/
\r
#define ATTR_NO_RETURN __attribute__ ((noreturn))
\r
\r
*/
\r
#define ATTR_NO_RETURN __attribute__ ((noreturn))
\r
\r
- /** Places the function in one of the initilization sections, which execute before the main function
\r
+ /** Places the function in one of the initi
a
lization sections, which execute before the main function
\r
* of the application. The init function number can be specified as "x", as an integer. Refer to the
\r
* avr-libc manual for more information on the initialization sections.
\r
*/
\r
* of the application. The init function number can be specified as "x", as an integer. Refer to the
\r
* avr-libc manual for more information on the initialization sections.
\r
*/
\r
@@
-65,12
+65,12
@@
#define ATTR_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
\r
\r
/** Indicates that the specified parameters of the function are pointers which should never be NULL.
\r
#define ATTR_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
\r
\r
/** Indicates that the specified parameters of the function are pointers which should never be NULL.
\r
- * When applied as a 1-based comma sep
erated list the compiler will em
mit a warning if the specified
\r
+ * When applied as a 1-based comma sep
arated list the compiler will e
mit a warning if the specified
\r
* parameters are known at compiler time to be NULL at the point of calling the function.
\r
*/
\r
#define ATTR_NON_NULL_PTR_ARG(...) __attribute__ ((nonnull (__VA_ARGS__)))
\r
\r
* parameters are known at compiler time to be NULL at the point of calling the function.
\r
*/
\r
#define ATTR_NON_NULL_PTR_ARG(...) __attribute__ ((nonnull (__VA_ARGS__)))
\r
\r
- /** Removes any pream
ple or postamp
le from the function. When used, the function will not have any
\r
+ /** Removes any pream
ble or postamb
le from the function. When used, the function will not have any
\r
* register or stack saving code. This should be used with caution, and when used the programmer
\r
* is responsible for maintaining stack and register integrity.
\r
*/
\r
* register or stack saving code. This should be used with caution, and when used the programmer
\r
* is responsible for maintaining stack and register integrity.
\r
*/
\r
diff --git
a/LUFA/DriverStubs/Joystick.h
b/LUFA/DriverStubs/Joystick.h
index
415976a
..
ca80672
100644
(file)
--- a/
LUFA/DriverStubs/Joystick.h
+++ b/
LUFA/DriverStubs/Joystick.h
@@
-81,7
+81,7
@@
#if !defined(__DOXYGEN__)
\r
static inline void Joystick_Init(void)
\r
{
\r
#if !defined(__DOXYGEN__)
\r
static inline void Joystick_Init(void)
\r
{
\r
- // TODO: Initialize joystick port pins as inputs with pullups
\r
+ // TODO: Initialize joystick port pins as inputs with pull
-
ups
\r
};
\r
\r
static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
\r
};
\r
\r
static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
\r
diff --git
a/LUFA/Drivers/Board/HWB.h
b/LUFA/Drivers/Board/HWB.h
index
43aac9b
..
6ad2fa8
100644
(file)
--- a/
LUFA/Drivers/Board/HWB.h
+++ b/
LUFA/Drivers/Board/HWB.h
@@
-68,7
+68,7
@@
#error The selected board does not contain a HWB.
\r
#endif
\r
\r
#error The selected board does not contain a HWB.
\r
#endif
\r
\r
- /* Psudo-Functions for Doxygen: */
\r
+ /* Ps
e
udo-Functions for Doxygen: */
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the HWB driver, so that the current button position can be read. This sets the appropriate
\r
* I/O pin to an input with pull-up enabled.
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the HWB driver, so that the current button position can be read. This sets the appropriate
\r
* I/O pin to an input with pull-up enabled.
\r
diff --git
a/LUFA/Drivers/Board/Joystick.h
b/LUFA/Drivers/Board/Joystick.h
index
1f57e62
..
a3f70b8
100644
(file)
--- a/
LUFA/Drivers/Board/Joystick.h
+++ b/
LUFA/Drivers/Board/Joystick.h
@@
-66,7
+66,7
@@
#error The selected board does not contain a joystick.
\r
#endif
\r
\r
#error The selected board does not contain a joystick.
\r
#endif
\r
\r
- /* Psudo-Functions for Doxygen: */
\r
+ /* Ps
e
udo-Functions for Doxygen: */
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the joystick driver so that the joystick position can be read. This sets the appropriate
\r
* I/O pins to inputs with their pull-ups enabled.
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the joystick driver so that the joystick position can be read. This sets the appropriate
\r
* I/O pins to inputs with their pull-ups enabled.
\r
diff --git
a/LUFA/Drivers/Board/LEDs.h
b/LUFA/Drivers/Board/LEDs.h
index
cda15a4
..
03e0db5
100644
(file)
--- a/
LUFA/Drivers/Board/LEDs.h
+++ b/
LUFA/Drivers/Board/LEDs.h
@@
-68,7
+68,7
@@
#include "Board/LEDs.h"
\r
#endif
\r
\r
#include "Board/LEDs.h"
\r
#endif
\r
\r
- /* Psudo-Functions for Doxygen: */
\r
+ /* Ps
e
udo-Functions for Doxygen: */
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the board LED driver so that the LEDs can be controlled. This sets the appropriate port
\r
* I/O pins as outputs, and sets the LEDs to default to off.
\r
#if defined(__DOXYGEN__)
\r
/** Initializes the board LED driver so that the LEDs can be controlled. This sets the appropriate port
\r
* I/O pins as outputs, and sets the LEDs to default to off.
\r
diff --git
a/LUFA/Drivers/Board/Temperature.h
b/LUFA/Drivers/Board/Temperature.h
index
c205093
..
17b8acf
100644
(file)
--- a/
LUFA/Drivers/Board/Temperature.h
+++ b/
LUFA/Drivers/Board/Temperature.h
@@
-72,16
+72,16
@@
/** Initializes the temperature sensor driver, including setting up the appropriate ADC channel.
\r
* This must be called before any other temperature sensor routines.
\r
*
\r
/** Initializes the temperature sensor driver, including setting up the appropriate ADC channel.
\r
* This must be called before any other temperature sensor routines.
\r
*
\r
- * The ADC itself (not the ADC channel) must be configured sep
e
rately before calling the temperature
\r
+ * The ADC itself (not the ADC channel) must be configured sep
a
rately before calling the temperature
\r
* sensor functions.
\r
*/
\r
#define Temperature_Init() ADC_SetupChannel(TEMP_ADC_CHANNEL);
\r
\r
/* Function Prototypes: */
\r
/** Performs a complete ADC on the temperature sensor channel, and converts the result into a
\r
* sensor functions.
\r
*/
\r
#define Temperature_Init() ADC_SetupChannel(TEMP_ADC_CHANNEL);
\r
\r
/* Function Prototypes: */
\r
/** Performs a complete ADC on the temperature sensor channel, and converts the result into a
\r
- * valid temperature between TEMP_MIN_TEMP and TEMP_MAX_TEMP in degrees Cel
c
ius.
\r
+ * valid temperature between TEMP_MIN_TEMP and TEMP_MAX_TEMP in degrees Cel
s
ius.
\r
*
\r
*
\r
- * \return Signed temperature in degrees Cel
c
ius
\r
+ * \return Signed temperature in degrees Cel
s
ius
\r
*/
\r
int8_t Temperature_GetTemperature(void) ATTR_WARN_UNUSED_RESULT;
\r
\r
*/
\r
int8_t Temperature_GetTemperature(void) ATTR_WARN_UNUSED_RESULT;
\r
\r
diff --git
a/LUFA/Drivers/USB/Class/ConfigDescriptor.h
b/LUFA/Drivers/USB/Class/ConfigDescriptor.h
index
d1f8927
..
d42b71c
100644
(file)
--- a/
LUFA/Drivers/USB/Class/ConfigDescriptor.h
+++ b/
LUFA/Drivers/USB/Class/ConfigDescriptor.h
@@
-97,13
+97,13
@@
#define DESCRIPTOR_SIZE(DescriptorPtr) DESCRIPTOR_CAST(DescriptorPtr, USB_Descriptor_Header_t).bLength
\r
#endif
\r
\r
#define DESCRIPTOR_SIZE(DescriptorPtr) DESCRIPTOR_CAST(DescriptorPtr, USB_Descriptor_Header_t).bLength
\r
#endif
\r
\r
- /** Creates a prototype for or begins a descriptor compar
itor routine. Descriptor compari
tor routines are
\r
+ /** Creates a prototype for or begins a descriptor compar
ator routine. Descriptor compara
tor routines are
\r
* small search routines which are passed a pointer to the current sub descriptor in the configuration
\r
* descriptor, and which analyse the sub descriptor to determine whether or not it matches the routine's
\r
* small search routines which are passed a pointer to the current sub descriptor in the configuration
\r
* descriptor, and which analyse the sub descriptor to determine whether or not it matches the routine's
\r
- * search parameters. Compar
i
tor routines provide a powerful way to scan through the config descriptor
\r
+ * search parameters. Compar
a
tor routines provide a powerful way to scan through the config descriptor
\r
* for certain descriptors matching unique criteria.
\r
*
\r
* for certain descriptors matching unique criteria.
\r
*
\r
- * Compar
i
tor routines are passed in a single pointer named CurrentDescriptor, and should return a value
\r
+ * Compar
a
tor routines are passed in a single pointer named CurrentDescriptor, and should return a value
\r
* of a member of the DSEARCH_Return_ErrorCodes_t enum.
\r
*/
\r
#define DESCRIPTOR_COMPARATOR(name) uint8_t DCOMP_##name (void* const CurrentDescriptor)
\r
* of a member of the DSEARCH_Return_ErrorCodes_t enum.
\r
*/
\r
#define DESCRIPTOR_COMPARATOR(name) uint8_t DCOMP_##name (void* const CurrentDescriptor)
\r
@@
-117,7
+117,7
@@
*
\r
* \param DSize Pointer to an int storing the remaining bytes in the configuration descriptor
\r
* \param DPos Pointer to the current position in the configuration descriptor
\r
*
\r
* \param DSize Pointer to an int storing the remaining bytes in the configuration descriptor
\r
* \param DPos Pointer to the current position in the configuration descriptor
\r
- * \param DSearch Name of the compar
i
tor search function to use on the configuration descriptor
\r
+ * \param DSearch Name of the compar
a
tor search function to use on the configuration descriptor
\r
*
\r
* \return Value of one of the members of the DSEARCH_Comp_Return_ErrorCodes_t enum
\r
*
\r
*
\r
* \return Value of one of the members of the DSEARCH_Comp_Return_ErrorCodes_t enum
\r
*
\r
@@
-156,7
+156,7
@@
/** Enum for return values of USB_Host_GetNextDescriptorComp() */
\r
enum DSEARCH_Comp_Return_ErrorCodes_t
\r
{
\r
/** Enum for return values of USB_Host_GetNextDescriptorComp() */
\r
enum DSEARCH_Comp_Return_ErrorCodes_t
\r
{
\r
- Descriptor_Search_Comp_Found = 0, /**< Configuration descriptor now points to decriptor which matches
\r
+ Descriptor_Search_Comp_Found = 0, /**< Configuration descriptor now points to de
s
criptor which matches
\r
* search criteria of the given comparator function. */
\r
Descriptor_Search_Comp_Fail = 1, /**< Comparator function returned Descriptor_Search_Fail. */
\r
Descriptor_Search_Comp_EndOfDescriptor = 2, /**< End of configuration descriptor reached before match found. */
\r
* search criteria of the given comparator function. */
\r
Descriptor_Search_Comp_Fail = 1, /**< Comparator function returned Descriptor_Search_Fail. */
\r
Descriptor_Search_Comp_EndOfDescriptor = 2, /**< End of configuration descriptor reached before match found. */
\r
diff --git
a/LUFA/Drivers/USB/Class/HIDParser.h
b/LUFA/Drivers/USB/Class/HIDParser.h
index
314d080
..
47a678b
100644
(file)
--- a/
LUFA/Drivers/USB/Class/HIDParser.h
+++ b/
LUFA/Drivers/USB/Class/HIDParser.h
@@
-220,7
+220,7
@@
bool GetReportItemInfo(const uint8_t* ReportData, HID_ReportItem_t* const ReportItem)
\r
ATTR_NON_NULL_PTR_ARG(1, 2);
\r
\r
bool GetReportItemInfo(const uint8_t* ReportData, HID_ReportItem_t* const ReportItem)
\r
ATTR_NON_NULL_PTR_ARG(1, 2);
\r
\r
- /** Retr
ei
ves the given report item's value out of the Value member of the report item's
\r
+ /** Retr
ie
ves the given report item's value out of the Value member of the report item's
\r
* HID_ReportItem_t structure and places it into the correct position in the HID report
\r
* buffer. The report buffer is assumed to have the appropriate bits cleared before calling
\r
* this function (i.e., the buffer should be explicitly cleared before report values are added).
\r
* HID_ReportItem_t structure and places it into the correct position in the HID report
\r
* buffer. The report buffer is assumed to have the appropriate bits cleared before calling
\r
* this function (i.e., the buffer should be explicitly cleared before report values are added).
\r
diff --git
a/LUFA/Drivers/USB/Class/HIDReportData.h
b/LUFA/Drivers/USB/Class/HIDReportData.h
index
1bb8676
..
0961cd4
100644
(file)
--- a/
LUFA/Drivers/USB/Class/HIDReportData.h
+++ b/
LUFA/Drivers/USB/Class/HIDReportData.h
@@
-84,7
+84,7
@@
/** HID_ReportItem_t.ItemFlags flag for buffered bytes. */
\r
#define IOF_BUFFEREDBYTES (1 << 8)
\r
\r
/** HID_ReportItem_t.ItemFlags flag for buffered bytes. */
\r
#define IOF_BUFFEREDBYTES (1 << 8)
\r
\r
- /** HID_ReportItem_t.ItemFlags flag for bitfield data. */
\r
+ /** HID_ReportItem_t.ItemFlags flag for bit
field data. */
\r
#define IOF_BITFIELD (0 << 8)
\r
\r
/* Private Interface - For use in library only: */
\r
#define IOF_BITFIELD (0 << 8)
\r
\r
/* Private Interface - For use in library only: */
\r
diff --git
a/LUFA/Drivers/USB/HighLevel/Events.h
b/LUFA/Drivers/USB/HighLevel/Events.h
index
eeb0ed3
..
d53cd8e
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/Events.h
+++ b/
LUFA/Drivers/USB/HighLevel/Events.h
@@
-58,7
+58,7
@@
/* Macros: */
\r
/** Raises a given event name, with the specified parameters. For events with no parameters the
\r
* only argument to the macro is the event name, events with parameters list the parameter values
\r
/* Macros: */
\r
/** Raises a given event name, with the specified parameters. For events with no parameters the
\r
* only argument to the macro is the event name, events with parameters list the parameter values
\r
- * after the name as a comma sep
e
rated list.
\r
+ * after the name as a comma sep
a
rated list.
\r
*
\r
* When a given event is fired, its corresponding event handler code is executed.
\r
*
\r
*
\r
* When a given event is fired, its corresponding event handler code is executed.
\r
*
\r
@@
-75,7
+75,7
@@
*/
\r
#define RAISE_EVENT(e, ...) Event_ ## e (__VA_ARGS__)
\r
\r
*/
\r
#define RAISE_EVENT(e, ...) Event_ ## e (__VA_ARGS__)
\r
\r
- /** Indicates that a given module can raise a given event. This is the equiv
e
lent of putting the
\r
+ /** Indicates that a given module can raise a given event. This is the equiv
a
lent of putting the
\r
* event function's prototype into the module, but in a cleaner way. Each event which may be
\r
* fired via the RAISE_EVENT macro in the module should have an accompanying RAISES_EVENT
\r
* prototype in the module's header file.
\r
* event function's prototype into the module, but in a cleaner way. Each event which may be
\r
* fired via the RAISE_EVENT macro in the module should have an accompanying RAISES_EVENT
\r
* prototype in the module's header file.
\r
@@
-100,7
+100,7
@@
*
\r
* Only one event handler may be defined in any user project for each individual event. Events may
\r
* or may not have parameters - for each event, refer to its documentation elsewhere in this module
\r
*
\r
* Only one event handler may be defined in any user project for each individual event. Events may
\r
* or may not have parameters - for each event, refer to its documentation elsewhere in this module
\r
- * to determine the presen
s
e and purpose of any event parameters.
\r
+ * to determine the presen
c
e and purpose of any event parameters.
\r
*
\r
* Usage Example:
\r
* \code
\r
*
\r
* Usage Example:
\r
* \code
\r
@@
-115,7
+115,7
@@
*/
\r
#define EVENT_HANDLER(e) void Event_ ## e e ## _P
\r
\r
*/
\r
#define EVENT_HANDLER(e) void Event_ ## e e ## _P
\r
\r
- /** Indicates that a given module handles an event. This is the equiv
e
lent of putting the
\r
+ /** Indicates that a given module handles an event. This is the equiv
a
lent of putting the
\r
* event function's prototype into the module, but in a cleaner way. Each event which may be
\r
* handled via the EVENT_HANDLER macro in the module should have an accompanying HANDLES_EVENT
\r
* prototype in the module's header file.
\r
* event function's prototype into the module, but in a cleaner way. Each event which may be
\r
* handled via the EVENT_HANDLER macro in the module should have an accompanying HANDLES_EVENT
\r
* prototype in the module's header file.
\r
@@
-136,7
+136,7
@@
*/
\r
#define HANDLES_EVENT(e) EVENT_HANDLER(e)
\r
\r
*/
\r
#define HANDLES_EVENT(e) EVENT_HANDLER(e)
\r
\r
- /* Psudo-Functions for Doxygen: */
\r
+ /* Ps
e
udo-Functions for Doxygen: */
\r
#if defined(__DOXYGEN__)
\r
/** Event for VBUS level change. This event fires when the VBUS line of the USB AVR changes from
\r
* high to low or vice-versa.
\r
#if defined(__DOXYGEN__)
\r
/** Event for VBUS level change. This event fires when the VBUS line of the USB AVR changes from
\r
* high to low or vice-versa.
\r
@@
-165,7
+165,7
@@
* has been attached (but not yet fully enumerated), or when in device mode and the device is connected
\r
* to a host, beginning the enumeration process.
\r
*
\r
* has been attached (but not yet fully enumerated), or when in device mode and the device is connected
\r
* to a host, beginning the enumeration process.
\r
*
\r
- * When in device mode, this can be used to progmatically start the USB management task to reduce
\r
+ * When in device mode, this can be used to prog
ram
matically start the USB management task to reduce
\r
* CPU usage.
\r
*
\r
* \note For the smaller USB AVRs (AT90USBXX2) with limited USB controllers, VBUS is not available to the USB controller.
\r
* CPU usage.
\r
*
\r
* \note For the smaller USB AVRs (AT90USBXX2) with limited USB controllers, VBUS is not available to the USB controller.
\r
@@
-183,7
+183,7
@@
* attached and enumerated device has been disconnected, or when in device mode and the device is
\r
* disconnected from the host.
\r
*
\r
* attached and enumerated device has been disconnected, or when in device mode and the device is
\r
* disconnected from the host.
\r
*
\r
- * When in device mode, this can be used to progmatically stop the USB management task to reduce
\r
+ * When in device mode, this can be used to prog
ram
matically stop the USB management task to reduce
\r
* CPU usage.
\r
*
\r
* \note For the smaller USB AVRs (AT90USBXX2) with limited USB controllers, VBUS is not available to the USB controller.
\r
* CPU usage.
\r
*
\r
* \note For the smaller USB AVRs (AT90USBXX2) with limited USB controllers, VBUS is not available to the USB controller.
\r
@@
-231,7
+231,7
@@
\r
/** Event for USB device attachment. This event fires when a the USB interface is in host mode, and
\r
* a USB device has been connected to the USB interface. This is interrupt driven, thus fires before
\r
\r
/** Event for USB device attachment. This event fires when a the USB interface is in host mode, and
\r
* a USB device has been connected to the USB interface. This is interrupt driven, thus fires before
\r
- * the standard USB_DeviceConnect event and so can be used to programatically start the USB management
\r
+ * the standard USB_DeviceConnect event and so can be used to program
m
atically start the USB management
\r
* task to reduce CPU consumption.
\r
*
\r
* \note This event only exists on USB AVR models which supports host mode.
\r
* task to reduce CPU consumption.
\r
*
\r
* \note This event only exists on USB AVR models which supports host mode.
\r
@@
-245,7
+245,7
@@
\r
/** Event for USB device removal. This event fires when a the USB interface is in host mode, and
\r
* a USB device has been removed the USB interface whether or not it has been enumerated. This
\r
\r
/** Event for USB device removal. This event fires when a the USB interface is in host mode, and
\r
* a USB device has been removed the USB interface whether or not it has been enumerated. This
\r
- * can be used to programatically stop the USB management task to reduce CPU consumption.
\r
+ * can be used to program
m
atically stop the USB management task to reduce CPU consumption.
\r
*
\r
* \note This event only exists on USB AVR models which supports host mode.
\r
*
\r
*
\r
* \note This event only exists on USB AVR models which supports host mode.
\r
*
\r
diff --git
a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
index
3090d8c
..
491e817
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/StdDescriptors.h
+++ b/
LUFA/Drivers/USB/HighLevel/StdDescriptors.h
@@
-31,7
+31,7
@@
/** \file
\r
*
\r
* Standard USB device descriptor defines and retrieval routines, for USB devices. This module contains
\r
/** \file
\r
*
\r
* Standard USB device descriptor defines and retrieval routines, for USB devices. This module contains
\r
- * struc
u
tures and macros for the easy creation of standard USB descriptors in USB device projects.
\r
+ * structures and macros for the easy creation of standard USB descriptors in USB device projects.
\r
*
\r
* All standard descriptors have their elements named in an identical manner to the official USB specification,
\r
* however slightly more verbose alternate (non-standard) names are also supplied if the macro
\r
*
\r
* All standard descriptors have their elements named in an identical manner to the official USB specification,
\r
* however slightly more verbose alternate (non-standard) names are also supplied if the macro
\r
@@
-245,7
+245,7
@@
uint16_t ReleaseNumber; /**< Product release (version) number. */
\r
\r
uint8_t ManufacturerStrIndex; /**< String index for the manufacturer's name. The
\r
uint16_t ReleaseNumber; /**< Product release (version) number. */
\r
\r
uint8_t ManufacturerStrIndex; /**< String index for the manufacturer's name. The
\r
- * host will request this string via a sep
e
rate
\r
+ * host will request this string via a sep
a
rate
\r
* control request for the string descriptor.
\r
*
\r
* \note If no string supplied, use NO_DESCRIPTOR.
\r
* control request for the string descriptor.
\r
*
\r
* \note If no string supplied, use NO_DESCRIPTOR.
\r
@@
-255,7
+255,7
@@
* \see ManufacturerStrIndex structure entry.
\r
*/
\r
uint8_t SerialNumStrIndex; /**< String index for the product's globally unique hexadecimal
\r
* \see ManufacturerStrIndex structure entry.
\r
*/
\r
uint8_t SerialNumStrIndex; /**< String index for the product's globally unique hexadecimal
\r
- * serial number, in uppercase Unicode
d
ASCII.
\r
+ * serial number, in uppercase Unicode ASCII.
\r
*
\r
* \see ManufacturerStrIndex structure entry.
\r
*/
\r
*
\r
* \see ManufacturerStrIndex structure entry.
\r
*/
\r
@@
-363,7
+363,7
@@
\r
/** Type define for a standard interface association descriptor.
\r
*
\r
\r
/** Type define for a standard interface association descriptor.
\r
*
\r
- * This descriptor has been added as a suppl
i
ment to the USB2.0 standard, in the ECN located at
\r
+ * This descriptor has been added as a suppl
e
ment to the USB2.0 standard, in the ECN located at
\r
* <a>http://www.usb.org/developers/docs/InterfaceAssociationDescriptor_ecn.pdf</a>. It allows compound
\r
* devices with multiple interfaces related to the same function to have the multiple interfaces bound
\r
* together at the point of enumeration, loading one generic driver for all the interfaces in the single
\r
* <a>http://www.usb.org/developers/docs/InterfaceAssociationDescriptor_ecn.pdf</a>. It allows compound
\r
* devices with multiple interfaces related to the same function to have the multiple interfaces bound
\r
* together at the point of enumeration, loading one generic driver for all the interfaces in the single
\r
@@
-425,7
+425,7
@@
* maximum packet size that the endpoint can receive at a time.
\r
*/
\r
\r
* maximum packet size that the endpoint can receive at a time.
\r
*/
\r
\r
- uint8_t PollingIntervalMS; /**< Polling interval in milliseconds for the endpont
\r
+ uint8_t PollingIntervalMS; /**< Polling interval in milliseconds for the endpo
i
nt
\r
* if it is an INTERRUPT or ISOCHRONOUS type.
\r
*/
\r
#else
\r
* if it is an INTERRUPT or ISOCHRONOUS type.
\r
*/
\r
#else
\r
diff --git
a/LUFA/Drivers/USB/HighLevel/USBInterrupt.h
b/LUFA/Drivers/USB/HighLevel/USBInterrupt.h
index
8438a58
..
20b89eb
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/USBInterrupt.h
+++ b/
LUFA/Drivers/USB/HighLevel/USBInterrupt.h
@@
-79,7
+79,7
@@
#define USB_INT_IsEnabled(int) ((USB_INT_GET_EN_REG(int) & USB_INT_GET_EN_MASK(int)) ? true : false)
\r
\r
/** Returns boolean true if the given interrupt flag is set (i.e. the condition for the interrupt has occurred,
\r
#define USB_INT_IsEnabled(int) ((USB_INT_GET_EN_REG(int) & USB_INT_GET_EN_MASK(int)) ? true : false)
\r
\r
/** Returns boolean true if the given interrupt flag is set (i.e. the condition for the interrupt has occurred,
\r
- * but the interrupt vector is not nec
ce
sarily enabled), otherwise returns false.
\r
+ * but the interrupt vector is not nec
es
sarily enabled), otherwise returns false.
\r
*/
\r
#define USB_INT_HasOccurred(int) ((USB_INT_GET_INT_REG(int) & USB_INT_GET_INT_MASK(int)) ? true : false)
\r
\r
*/
\r
#define USB_INT_HasOccurred(int) ((USB_INT_GET_INT_REG(int) & USB_INT_GET_INT_MASK(int)) ? true : false)
\r
\r
diff --git
a/LUFA/Drivers/USB/HighLevel/USBTask.h
b/LUFA/Drivers/USB/HighLevel/USBTask.h
index
5bbd4f9
..
c8180f5
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/USBTask.h
+++ b/
LUFA/Drivers/USB/HighLevel/USBTask.h
@@
-76,7
+76,7
@@
*/
\r
extern volatile bool USB_IsConnected;
\r
\r
*/
\r
extern volatile bool USB_IsConnected;
\r
\r
- /** Indicates if the USB interface is currently initialized but not nec
ce
sarily connected to a host
\r
+ /** Indicates if the USB interface is currently initialized but not nec
es
sarily connected to a host
\r
* or device (i.e. if USB_Init() has been run). If this is false, all other library globals are invalid.
\r
*
\r
* \note This variable should be treated as read-only in the user application, and never manually
\r
* or device (i.e. if USB_Init() has been run). If this is false, all other library globals are invalid.
\r
*
\r
* \note This variable should be treated as read-only in the user application, and never manually
\r
@@
-166,10
+166,10
@@
* The USB task must be serviced within 50mS in all modes, when needed. The task may be serviced
\r
* at all times, or (for minimum CPU consumption):
\r
*
\r
* The USB task must be serviced within 50mS in all modes, when needed. The task may be serviced
\r
* at all times, or (for minimum CPU consumption):
\r
*
\r
- * - In device mode, it may be disabled at startup, enabled on the firing of the USB_Connect event
\r
+ * - In device mode, it may be disabled at start
-
up, enabled on the firing of the USB_Connect event
\r
* and disabled again on the firing of the USB_Disconnect event.
\r
*
\r
* and disabled again on the firing of the USB_Disconnect event.
\r
*
\r
- * - In host mode, it may be disabled at startup, enabled on the firing of the USB_DeviceAttached
\r
+ * - In host mode, it may be disabled at start
-
up, enabled on the firing of the USB_DeviceAttached
\r
* event and disabled again on the firing of the USB_DeviceUnattached event.
\r
*
\r
* \see Events.h for more information on the USB events.
\r
* event and disabled again on the firing of the USB_DeviceUnattached event.
\r
*
\r
* \see Events.h for more information on the USB events.
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/Device.h
b/LUFA/Drivers/USB/LowLevel/Device.h
index
187fccb
..
c6e5f7f
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Device.h
+++ b/
LUFA/Drivers/USB/LowLevel/Device.h
@@
-94,7
+94,7
@@
\r
/** Indicates if the device is currently suspended by the host. While suspended, the device is
\r
* to enter a low power state until resumed by the host. While suspended no USB traffic to or
\r
\r
/** Indicates if the device is currently suspended by the host. While suspended, the device is
\r
* to enter a low power state until resumed by the host. While suspended no USB traffic to or
\r
- * from the device can oc
ur
r (except for Remote Wakeup requests).
\r
+ * from the device can oc
cu
r (except for Remote Wakeup requests).
\r
*
\r
* This macro returns true if the USB communications have been suspended by the host, false
\r
* otherwise.
\r
*
\r
* This macro returns true if the USB communications have been suspended by the host, false
\r
* otherwise.
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/Endpoint.h
b/LUFA/Drivers/USB/LowLevel/Endpoint.h
index
c6aece7
..
8c22bb7
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Endpoint.h
+++ b/
LUFA/Drivers/USB/LowLevel/Endpoint.h
@@
-32,7
+32,7
@@
*
\r
* Functions, macros and enums related to endpoint management when in USB Device mode. This
\r
* module contains the endpoint management macros, as well as endpoint interrupt and data
\r
*
\r
* Functions, macros and enums related to endpoint management when in USB Device mode. This
\r
* module contains the endpoint management macros, as well as endpoint interrupt and data
\r
- * send/recieve functions for various datatypes.
\r
+ * send/recieve functions for various data
types.
\r
*/
\r
\r
#ifndef __ENDPOINT_H__
\r
*/
\r
\r
#ifndef __ENDPOINT_H__
\r
@@
-210,7
+210,7
@@
\r
/** Returns true if the currently selected endpoint may be read from (if data is waiting in the endpoint
\r
* bank and the endpoint is an OUT direction, or if the bank is not yet full if the endpoint is an
\r
\r
/** Returns true if the currently selected endpoint may be read from (if data is waiting in the endpoint
\r
* bank and the endpoint is an OUT direction, or if the bank is not yet full if the endpoint is an
\r
- * IN direction). This function will return false if an error has occured in the endpoint, or if
\r
+ * IN direction). This function will return false if an error has occur
r
ed in the endpoint, or if
\r
* the endpoint is an OUT direction and no packet has been received, or if the endpoint is an IN
\r
* direction and the endpoint bank is full.
\r
*/
\r
* the endpoint is an OUT direction and no packet has been received, or if the endpoint is an IN
\r
* direction and the endpoint bank is full.
\r
*/
\r
@@
-262,10
+262,10
@@
*/
\r
#define Endpoint_ClearSetupOUT() MACROS{ UEINTX &= ~(1 << RXOUTI); }MACROE
\r
\r
*/
\r
#define Endpoint_ClearSetupOUT() MACROS{ UEINTX &= ~(1 << RXOUTI); }MACROE
\r
\r
- /** Stalls the current endpoint, indicating to the host that a logical problem occured with the
\r
+ /** Stalls the current endpoint, indicating to the host that a logical problem occur
r
ed with the
\r
* indicated endpoint and that the current transfer sequence should be aborted. This provides a
\r
* way for devices to indicate invalid commands to the host so that the current transfer can be
\r
* indicated endpoint and that the current transfer sequence should be aborted. This provides a
\r
* way for devices to indicate invalid commands to the host so that the current transfer can be
\r
- * aborted and the host can begin its own recovery seq
e
uence.
\r
+ * aborted and the host can begin its own recovery sequence.
\r
*
\r
* The currently selected endpoint remains stalled until either the Endpoint_ClearStall() macro
\r
* is called, or the host issues a CLEAR FEATURE request to the device for the currently selected
\r
*
\r
* The currently selected endpoint remains stalled until either the Endpoint_ClearStall() macro
\r
* is called, or the host issues a CLEAR FEATURE request to the device for the currently selected
\r
@@
-276,7
+276,7
@@
/** Clears the stall on the currently selected endpoint. */
\r
#define Endpoint_ClearStall() MACROS{ UECONX |= (1 << STALLRQC); }MACROE
\r
\r
/** Clears the stall on the currently selected endpoint. */
\r
#define Endpoint_ClearStall() MACROS{ UECONX |= (1 << STALLRQC); }MACROE
\r
\r
- /** Returns true if the currently selected endpoint is stalled, false othewise. */
\r
+ /** Returns true if the currently selected endpoint is stalled, false othe
r
wise. */
\r
#define Endpoint_IsStalled() ((UECONX & (1 << STALLRQ)) ? true : false)
\r
\r
/** Resets the data toggle of the currently selected endpoint. */
\r
#define Endpoint_IsStalled() ((UECONX & (1 << STALLRQ)) ? true : false)
\r
\r
/** Resets the data toggle of the currently selected endpoint. */
\r
@@
-552,12
+552,12
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-576,13
+576,13
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected endpoint into the buffer.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected endpoint into the buffer.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-601,13
+601,13
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected endpoint into the buffer.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected endpoint into the buffer.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-626,13
+626,13
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the destination data buffer to write to.
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the destination data buffer to write to.
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-651,13
+651,13
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the destination data buffer to write to.
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
*
\r
* \note This routine should not be used on CONTROL type endpoints.
\r
*
\r
* \param Buffer Pointer to the destination data buffer to write to.
\r
* \param Length Number of bytes to send via the currently selected endpoint.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Endpoint_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-749,27
+749,27
@@
#define Endpoint_Ignore_DWord() Endpoint_Discard_DWord()
\r
\r
/** Alias for Endpoint_Read_Word_LE(). By default USB transfers use little endian format, thus
\r
#define Endpoint_Ignore_DWord() Endpoint_Discard_DWord()
\r
\r
/** Alias for Endpoint_Read_Word_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Read_Word() Endpoint_Read_Word_LE()
\r
\r
/** Alias for Endpoint_Write_Word_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Endpoint_Read_Word() Endpoint_Read_Word_LE()
\r
\r
/** Alias for Endpoint_Write_Word_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Write_Word(Word) Endpoint_Write_Word_LE(Word)
\r
\r
/** Alias for Endpoint_Read_DWord_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Endpoint_Write_Word(Word) Endpoint_Write_Word_LE(Word)
\r
\r
/** Alias for Endpoint_Read_DWord_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Read_DWord() Endpoint_Read_DWord_LE()
\r
\r
/** Alias for Endpoint_Write_DWord_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Endpoint_Read_DWord() Endpoint_Read_DWord_LE()
\r
\r
/** Alias for Endpoint_Write_DWord_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Write_DWord(DWord) Endpoint_Write_DWord_LE(DWord)
\r
\r
/** Alias for Endpoint_Read_Stream_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Endpoint_Write_DWord(DWord) Endpoint_Write_DWord_LE(DWord)
\r
\r
/** Alias for Endpoint_Read_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Endpoint_Read_Stream(Buffer, Length, Callback) Endpoint_Read_Stream_LE(Buffer, Length, Callback)
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Endpoint_Read_Stream(Buffer, Length, Callback) Endpoint_Read_Stream_LE(Buffer, Length, Callback)
\r
@@
-778,7
+778,7
@@
#endif
\r
\r
/** Alias for Endpoint_Write_Stream_LE(). By default USB transfers use little endian format, thus
\r
#endif
\r
\r
/** Alias for Endpoint_Write_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Endpoint_Write_Stream(Buffer, Length, Callback) Endpoint_Write_Stream_LE(Buffer, Length, Callback)
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Endpoint_Write_Stream(Buffer, Length, Callback) Endpoint_Write_Stream_LE(Buffer, Length, Callback)
\r
@@
-787,12
+787,12
@@
#endif
\r
\r
/** Alias for Endpoint_Read_Control_Stream_LE(). By default USB transfers use little endian format, thus
\r
#endif
\r
\r
/** Alias for Endpoint_Read_Control_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Read_Control_Stream(Data, Length) Endpoint_Read_Control_Stream_LE(Data, Length)
\r
\r
/** Alias for Endpoint_Write_Control_Stream_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Endpoint_Read_Control_Stream(Data, Length) Endpoint_Read_Control_Stream_LE(Data, Length)
\r
\r
/** Alias for Endpoint_Write_Control_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Endpoint_Write_Control_Stream(Data, Length) Endpoint_Write_Control_Stream_LE(Data, Length)
\r
\r
*/
\r
#define Endpoint_Write_Control_Stream(Data, Length) Endpoint_Write_Control_Stream_LE(Data, Length)
\r
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/Host.c
b/LUFA/Drivers/USB/LowLevel/Host.c
index
7acbffe
..
04b06b3
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Host.c
+++ b/
LUFA/Drivers/USB/LowLevel/Host.c
@@
-93,8
+93,8
@@
void USB_Host_ResetDevice(void)
\r
for (uint8_t MSRem = 10; MSRem != 0; MSRem--)
\r
{
\r
\r
for (uint8_t MSRem = 10; MSRem != 0; MSRem--)
\r
{
\r
- /* Workaround for powerless-pullup devices. After a USB bus reset,
\r
- all disconnection interrupts are supressed while a USB frame is
\r
+ /* Workaround for powerless-pull
-
up devices. After a USB bus reset,
\r
+ all disconnection interrupts are sup
p
ressed while a USB frame is
\r
looked for - if it is found within 10ms, the device is still
\r
present. */
\r
\r
looked for - if it is found within 10ms, the device is still
\r
present. */
\r
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/Host.h
b/LUFA/Drivers/USB/LowLevel/Host.h
index
5cc2154
..
427ed85
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Host.h
+++ b/
LUFA/Drivers/USB/LowLevel/Host.h
@@
-102,7
+102,7
@@
*/
\r
#define USB_Host_ResumeBus() MACROS{ UHCON |= (1 << SOFEN); }MACROE
\r
\r
*/
\r
#define USB_Host_ResumeBus() MACROS{ UHCON |= (1 << SOFEN); }MACROE
\r
\r
- /** Suspends the USB bus, preventing any communications from occuring between the host and attached
\r
+ /** Suspends the USB bus, preventing any communications from occur
r
ing between the host and attached
\r
* device until the bus has been resumed. This stops the transmission of the 1MS Start Of Frame
\r
* messages to the device.
\r
*/
\r
* device until the bus has been resumed. This stops the transmission of the 1MS Start Of Frame
\r
* messages to the device.
\r
*/
\r
@@
-192,14
+192,14
@@
* event.
\r
*/
\r
HOST_ENUMERROR_WaitStage = 1, /**< One of the delays between enumeration steps failed
\r
* event.
\r
*/
\r
HOST_ENUMERROR_WaitStage = 1, /**< One of the delays between enumeration steps failed
\r
- * to complete successfuly, due to a timeout or other
\r
+ * to complete successful
l
y, due to a timeout or other
\r
* error.
\r
*/
\r
HOST_ENUMERROR_NoDeviceDetected = 2, /**< No device was detected, despite the USB data lines
\r
* indicating the attachment of a device.
\r
*/
\r
HOST_ENUMERROR_ControlError = 3, /**< One of the enumeration control requests failed to
\r
* error.
\r
*/
\r
HOST_ENUMERROR_NoDeviceDetected = 2, /**< No device was detected, despite the USB data lines
\r
* indicating the attachment of a device.
\r
*/
\r
HOST_ENUMERROR_ControlError = 3, /**< One of the enumeration control requests failed to
\r
- * complete successfuly.
\r
+ * complete successful
l
y.
\r
*/
\r
HOST_ENUMERROR_PipeConfigError = 4, /**< The default control pipe (address 0) failed to
\r
* configure correctly.
\r
*/
\r
HOST_ENUMERROR_PipeConfigError = 4, /**< The default control pipe (address 0) failed to
\r
* configure correctly.
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/HostChapter9.h
b/LUFA/Drivers/USB/LowLevel/HostChapter9.h
index
1ca4343
..
4e4fa4f
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/HostChapter9.h
+++ b/
LUFA/Drivers/USB/LowLevel/HostChapter9.h
@@
-77,7
+77,7
@@
HOST_SENDCONTROL_DeviceDisconnect = 1, /**< The attached device was disconnected during the
\r
* request transfer.
\r
*/
\r
HOST_SENDCONTROL_DeviceDisconnect = 1, /**< The attached device was disconnected during the
\r
* request transfer.
\r
*/
\r
- HOST_SENDCONTROL_PipeError = 2, /**< An error occured in the pipe while sending the request. */
\r
+ HOST_SENDCONTROL_PipeError = 2, /**< An error occur
r
ed in the pipe while sending the request. */
\r
HOST_SENDCONTROL_SetupStalled = 3, /**< The attached device stalled the request, usually
\r
* indicating that the request is unsupported on the device.
\r
*/
\r
HOST_SENDCONTROL_SetupStalled = 3, /**< The attached device stalled the request, usually
\r
* indicating that the request is unsupported on the device.
\r
*/
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/OTG.h
b/LUFA/Drivers/USB/LowLevel/OTG.h
index
e1a92f1
..
88a9554
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/OTG.h
+++ b/
LUFA/Drivers/USB/LowLevel/OTG.h
@@
-82,7
+82,7
@@
* host mode indicates that VBUS should be applied and a session started.
\r
*
\r
* There are two different methods of sending a SRP - either pulses on the VBUS line, or by
\r
* host mode indicates that VBUS should be applied and a session started.
\r
*
\r
* There are two different methods of sending a SRP - either pulses on the VBUS line, or by
\r
- * pulsing the Data + line via the internal pullup resistor. The SRP mode is given as the
\r
+ * pulsing the Data + line via the internal pull
-
up resistor. The SRP mode is given as the
\r
* "type" parameter, and can be either USB_OTG_SRP_VBUS or USB_OTG_STP_DATA.
\r
*/
\r
#define USB_OTG_DEV_Initiate_SRP(type) MACROS{ OTGCON = ((OTGCON & ~(1 << SRPSEL)) | (type | (1 << SRPREQ))); }MACROE
\r
* "type" parameter, and can be either USB_OTG_SRP_VBUS or USB_OTG_STP_DATA.
\r
*/
\r
#define USB_OTG_DEV_Initiate_SRP(type) MACROS{ OTGCON = ((OTGCON & ~(1 << SRPSEL)) | (type | (1 << SRPREQ))); }MACROE
\r
diff --git
a/LUFA/Drivers/USB/LowLevel/Pipe.h
b/LUFA/Drivers/USB/LowLevel/Pipe.h
index
df3ac7d
..
9a59dbc
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Pipe.h
+++ b/
LUFA/Drivers/USB/LowLevel/Pipe.h
@@
-32,7
+32,7
@@
*
\r
* Functions, macros and enums related to pipe management when in USB Host mode. This
\r
* module contains the pipe management macros, as well as pipe interrupt and data
\r
*
\r
* Functions, macros and enums related to pipe management when in USB Host mode. This
\r
* module contains the pipe management macros, as well as pipe interrupt and data
\r
- * send/recieve functions for various datatypes.
\r
+ * send/recieve functions for various data
types.
\r
*/
\r
\r
#ifndef __PIPE_H__
\r
*/
\r
\r
#ifndef __PIPE_H__
\r
@@
-303,7
+303,7
@@
/** Returns true if the master pipe error flag is set for the currently selected pipe, indicating that
\r
* some sort of hardware error has occurred on the pipe.
\r
*
\r
/** Returns true if the master pipe error flag is set for the currently selected pipe, indicating that
\r
* some sort of hardware error has occurred on the pipe.
\r
*
\r
- * \see Pipe_GetErrorFlags() macro for information on retr
ei
ving the exact error flag.
\r
+ * \see Pipe_GetErrorFlags() macro for information on retr
ie
ving the exact error flag.
\r
*/
\r
#define Pipe_IsError() ((UPINTX & (1 << PERRI)) ? true : false)
\r
\r
*/
\r
#define Pipe_IsError() ((UPINTX & (1 << PERRI)) ? true : false)
\r
\r
@@
-311,14
+311,14
@@
* flag for the pipe. */
\r
#define Pipe_ClearErrorFlags() MACROS{ UPERRX = 0; }MACROE
\r
\r
* flag for the pipe. */
\r
#define Pipe_ClearErrorFlags() MACROS{ UPERRX = 0; }MACROE
\r
\r
- /** Returns a mask of the hardware error flags which have occured on the currently selected pipe. This
\r
+ /** Returns a mask of the hardware error flags which have occur
r
ed on the currently selected pipe. This
\r
* value can then be masked against the PIPE_ERRORFLAG_* masks to determine what error has occurred.
\r
*/
\r
#define Pipe_GetErrorFlags() UPERRX
\r
\r
/** Returns true if the currently selected pipe may be read from (if data is waiting in the pipe
\r
* bank and the pipe is an IN direction, or if the bank is not yet full if the pipe is an OUT
\r
* value can then be masked against the PIPE_ERRORFLAG_* masks to determine what error has occurred.
\r
*/
\r
#define Pipe_GetErrorFlags() UPERRX
\r
\r
/** Returns true if the currently selected pipe may be read from (if data is waiting in the pipe
\r
* bank and the pipe is an IN direction, or if the bank is not yet full if the pipe is an OUT
\r
- * direction). This function will return false if an error has occured in the pipe, or if the pipe
\r
+ * direction). This function will return false if an error has occur
r
ed in the pipe, or if the pipe
\r
* is an IN direction and no packet has been received, or if the pipe is an OUT direction and the
\r
* pipe bank is full.
\r
*/
\r
* is an IN direction and no packet has been received, or if the pipe is an OUT direction and the
\r
* pipe bank is full.
\r
*/
\r
@@
-358,9
+358,9
@@
#define Pipe_ClearSetupOUT() MACROS{ UPINTX &= ~(1 << TXOUTI); UPINTX &= ~(1 << FIFOCON); }MACROE
\r
\r
/** Returns true if the device sent a NAK (Negative Acknowledge) in response to the last sent packet on
\r
#define Pipe_ClearSetupOUT() MACROS{ UPINTX &= ~(1 << TXOUTI); UPINTX &= ~(1 << FIFOCON); }MACROE
\r
\r
/** Returns true if the device sent a NAK (Negative Acknowledge) in response to the last sent packet on
\r
- * the currently selected pipe. This oc
ur
rs when the host sends a packet to the device, but the device
\r
+ * the currently selected pipe. This oc
cu
rs when the host sends a packet to the device, but the device
\r
* is not currently ready to handle the packet (i.e. its endpoint banks are full). Once a NAK has been
\r
* is not currently ready to handle the packet (i.e. its endpoint banks are full). Once a NAK has been
\r
- * received, it must be cleard using Pipe_ClearNAKReceived() before the previous (or any other) packet
\r
+ * received, it must be clear
e
d using Pipe_ClearNAKReceived() before the previous (or any other) packet
\r
* can be re-sent.
\r
*/
\r
#define Pipe_IsNAKReceived() ((UPINTX & (1 << NAKEDI)) ? true : false)
\r
* can be re-sent.
\r
*/
\r
#define Pipe_IsNAKReceived() ((UPINTX & (1 << NAKEDI)) ? true : false)
\r
@@
-607,11
+607,11
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected pipe into the buffer.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected pipe into the buffer.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-629,11
+629,11
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected pipe into the buffer.
\r
*
\r
* \param Buffer Pointer to the source data buffer to read from.
\r
* \param Length Number of bytes to read for the currently selected pipe into the buffer.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-651,10
+651,10
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \param Length Number of bytes to send via the currently selected pipe.
\r
*
\r
* \param Length Number of bytes to send via the currently selected pipe.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-672,11
+672,11
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \param Buffer Pointer to the source data buffer to write to.
\r
* \param Length Number of bytes to read for the currently selected pipe to read from.
\r
*
\r
* \param Buffer Pointer to the source data buffer to write to.
\r
* \param Length Number of bytes to read for the currently selected pipe to read from.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-694,11
+694,11
@@
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
*
\r
* The callback routine should be created using the STREAM_CALLBACK() macro. If the token
\r
* NO_STREAM_CALLBACKS is passed via the -D option to the compiler, stream callbacks are disabled
\r
- * and this function has the Callback parameter om
m
itted.
\r
+ * and this function has the Callback parameter omitted.
\r
*
\r
* \param Buffer Pointer to the source data buffer to write to.
\r
* \param Length Number of bytes to read for the currently selected pipe to read from.
\r
*
\r
* \param Buffer Pointer to the source data buffer to write to.
\r
* \param Length Number of bytes to read for the currently selected pipe to read from.
\r
- * \param Callback Name of a callback routine to call between sucessive USB packet transfers, NULL if no callback
\r
+ * \param Callback Name of a callback routine to call between suc
c
essive USB packet transfers, NULL if no callback
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
*
\r
* \return A value from the Pipe_Stream_RW_ErrorCodes_t enum.
\r
*/
\r
@@
-722,27
+722,27
@@
#define Pipe_Ignore_DWord() Pipe_Discard_DWord()
\r
\r
/** Alias for Pipe_Read_Word_LE(). By default USB transfers use little endian format, thus
\r
#define Pipe_Ignore_DWord() Pipe_Discard_DWord()
\r
\r
/** Alias for Pipe_Read_Word_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Pipe_Read_Word() Pipe_Read_Word_LE()
\r
\r
/** Alias for Pipe_Write_Word_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Pipe_Read_Word() Pipe_Read_Word_LE()
\r
\r
/** Alias for Pipe_Write_Word_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Pipe_Write_Word(Word) Pipe_Write_Word_LE(Word)
\r
\r
/** Alias for Pipe_Read_DWord_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Pipe_Write_Word(Word) Pipe_Write_Word_LE(Word)
\r
\r
/** Alias for Pipe_Read_DWord_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Pipe_Read_DWord() Pipe_Read_DWord_LE()
\r
\r
/** Alias for Pipe_Write_DWord_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Pipe_Read_DWord() Pipe_Read_DWord_LE()
\r
\r
/** Alias for Pipe_Write_DWord_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#define Pipe_Write_DWord(DWord) Pipe_Write_DWord_LE(DWord)
\r
\r
/** Alias for Pipe_Read_Stream_LE(). By default USB transfers use little endian format, thus
\r
*/
\r
#define Pipe_Write_DWord(DWord) Pipe_Write_DWord_LE(DWord)
\r
\r
/** Alias for Pipe_Read_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Pipe_Read_Stream(Buffer, Length, Callback) Pipe_Read_Stream_LE(Buffer, Length, Callback)
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Pipe_Read_Stream(Buffer, Length, Callback) Pipe_Read_Stream_LE(Buffer, Length, Callback)
\r
@@
-751,7
+751,7
@@
#endif
\r
\r
/** Alias for Pipe_Write_Stream_LE(). By default USB transfers use little endian format, thus
\r
#endif
\r
\r
/** Alias for Pipe_Write_Stream_LE(). By default USB transfers use little endian format, thus
\r
- * the command with no endianness specifie
r
indicates little endian mode.
\r
+ * the command with no endianness specifie
d
indicates little endian mode.
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Pipe_Write_Stream(Buffer, Length, Callback) Pipe_Read_Stream_LE(Buffer, Length, Callback)
\r
*/
\r
#if !defined(NO_STREAM_CALLBACKS)
\r
#define Pipe_Write_Stream(Buffer, Length, Callback) Pipe_Read_Stream_LE(Buffer, Length, Callback)
\r
diff --git
a/LUFA/MemoryAllocator/DynAlloc.h
b/LUFA/MemoryAllocator/DynAlloc.h
index
6fd743e
..
dba1864
100644
(file)
--- a/
LUFA/MemoryAllocator/DynAlloc.h
+++ b/
LUFA/MemoryAllocator/DynAlloc.h
@@
-45,9
+45,9
@@
* The constants NUM_BLOCKS, BLOCK_SIZE and NUM_HANDLES must be defined in the project makefile (and passed to the
\r
* preprocessor via the -D GCC switch) for this library to compile.
\r
*
\r
* The constants NUM_BLOCKS, BLOCK_SIZE and NUM_HANDLES must be defined in the project makefile (and passed to the
\r
* preprocessor via the -D GCC switch) for this library to compile.
\r
*
\r
- * NUM_BLOCKS indicates the number of memory blocks in the memory psudoheap which can be chaned together and handed
\r
+ * NUM_BLOCKS indicates the number of memory blocks in the memory psudoheap which can be cha
i
ned together and handed
\r
* to the application via a memory handle. NUM_HANDLES is the maximum number of memory handles (pointing to one or
\r
* to the application via a memory handle. NUM_HANDLES is the maximum number of memory handles (pointing to one or
\r
- * more chained memory blocks) which can be handed out simultaneously before requring a handle (and its associated
\r
+ * more chained memory blocks) which can be handed out simultaneously before requ
i
ring a handle (and its associated
\r
* memory) to be freed. BLOCK_SIZE gives the number of bytes in each memory block.
\r
*/
\r
\r
* memory) to be freed. BLOCK_SIZE gives the number of bytes in each memory block.
\r
*/
\r
\r
@@
-67,7
+67,7
@@
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
/** Macro to dereference a given memory handle into the given type. The given type should be a pointer
\r
/* Public Interface - May be used in end-application: */
\r
/* Macros: */
\r
/** Macro to dereference a given memory handle into the given type. The given type should be a pointer
\r
- * if the memory is to contain an array of items, or should be a standard type (such as a prim
a
tive or
\r
+ * if the memory is to contain an array of items, or should be a standard type (such as a prim
i
tive or
\r
* structure) if the memory is to hold a single item of a single type. */
\r
#define DEREF(handle, type) (*(type*)handle)
\r
\r
* structure) if the memory is to hold a single item of a single type. */
\r
#define DEREF(handle, type) (*(type*)handle)
\r
\r
diff --git
a/LUFA/Scheduler/Scheduler.h
b/LUFA/Scheduler/Scheduler.h
index
e536e71
..
414b0b2
100644
(file)
--- a/
LUFA/Scheduler/Scheduler.h
+++ b/
LUFA/Scheduler/Scheduler.h
@@
-30,10
+30,10
@@
\r
/** \file
\r
*
\r
\r
/** \file
\r
*
\r
- * Simple round-robbin cooperative scheduler for use in basic projects where non realtime tasks need
\r
+ * Simple round-robbin cooperative scheduler for use in basic projects where non real
-
time tasks need
\r
* to be executed. Each task is executed in sequence, and can be enabled or disabled individually or as a group.
\r
*
\r
* to be executed. Each task is executed in sequence, and can be enabled or disabled individually or as a group.
\r
*
\r
- * For a task to yield it must return, thus each task should have persist
a
nt data marked with the static attribute.
\r
+ * For a task to yield it must return, thus each task should have persist
e
nt data marked with the static attribute.
\r
*
\r
* Usage Example:
\r
* \code
\r
*
\r
* Usage Example:
\r
* \code
\r
@@
-126,8
+126,8
@@
#define Scheduler_Start() Scheduler_GoSchedule(TOTAL_TASKS);
\r
\r
/** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself
\r
#define Scheduler_Start() Scheduler_GoSchedule(TOTAL_TASKS);
\r
\r
/** Initializes the scheduler so that the scheduler functions can be called before the scheduler itself
\r
- * is started. This must be exe
uc
ted before any scheduler function calls other than Scheduler_Start(),
\r
- * and can be om
m
itted if no such functions could be called before the scheduler is started.
\r
+ * is started. This must be exe
cu
ted before any scheduler function calls other than Scheduler_Start(),
\r
+ * and can be omitted if no such functions could be called before the scheduler is started.
\r
*/
\r
#define Scheduler_Init() Scheduler_InitScheduler(TOTAL_TASKS);
\r
\r
*/
\r
#define Scheduler_Init() Scheduler_InitScheduler(TOTAL_TASKS);
\r
\r
@@
-194,7
+194,7
@@
*
\r
* Usage Example:
\r
* \code
\r
*
\r
* Usage Example:
\r
* \code
\r
- * static SchedulerDelayCounter_t DelayCounter = 10000; // Force immediate run on startup
\r
+ * static SchedulerDelayCounter_t DelayCounter = 10000; // Force immediate run on start
-
up
\r
*
\r
* // Task runs every 10000 ticks, 10 seconds for this demo
\r
* if (Scheduler_HasDelayElapsed(10000, &DelayCounter))
\r
*
\r
* // Task runs every 10000 ticks, 10 seconds for this demo
\r
* if (Scheduler_HasDelayElapsed(10000, &DelayCounter))
\r
diff --git
a/Projects/Magstripe/CircularBitBuffer.h
b/Projects/Magstripe/CircularBitBuffer.h
index
71b9e26
..
6f1fa15
100644
(file)
--- a/
Projects/Magstripe/CircularBitBuffer.h
+++ b/
Projects/Magstripe/CircularBitBuffer.h
@@
-46,7
+46,7
@@
/* Macros: */
\r
#if (defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB647__) || \
\r
defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__)) || defined(__DOXYGEN__)
\r
/* Macros: */
\r
#if (defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB647__) || \
\r
defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB646__)) || defined(__DOXYGEN__)
\r
- /** Maximum number of bits which can be stored into a bit buffer. The memory usage is one eigth of this value per buffer. */
\r
+ /** Maximum number of bits which can be stored into a bit buffer. The memory usage is one eig
h
th of this value per buffer. */
\r
#define MAX_BITS 8192
\r
#else
\r
#define MAX_BITS 1024
\r
#define MAX_BITS 8192
\r
#else
\r
#define MAX_BITS 1024
\r
diff --git
a/Projects/Magstripe/Descriptors.c
b/Projects/Magstripe/Descriptors.c
index
71abca6
..
d5bbeb3
100644
(file)
--- a/
Projects/Magstripe/Descriptors.c
+++ b/
Projects/Magstripe/Descriptors.c
@@
-192,7
+192,7
@@
USB_Descriptor_String_t PROGMEM ProductString =
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
\r
/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h
\r
* documentation) by the application code so that the address and size of a requested descriptor can be given
\r
- * to the USB library. When the device rec
ie
ves a Get Descriptor request on the control endpoint, this function
\r
+ * to the USB library. When the device rec
ei
ves a Get Descriptor request on the control endpoint, this function
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
* is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the
\r
* USB host.
\r
*/
\r
diff --git
a/Projects/Magstripe/Magstripe.c
b/Projects/Magstripe/Magstripe.c
index
aef7812
..
9368117
100644
(file)
--- a/
Projects/Magstripe/Magstripe.c
+++ b/
Projects/Magstripe/Magstripe.c
@@
-78,7
+78,7
@@
BitBuffer_t Track2Data;
/** Circular buffer to hold the read bits from track 3 of the inserted magnetic card. */
\r
BitBuffer_t Track3Data;
\r
\r
/** Circular buffer to hold the read bits from track 3 of the inserted magnetic card. */
\r
BitBuffer_t Track3Data;
\r
\r
-/** Delay counter between sucessive key strokes. This is to prevent the OS from ignoring multiple keys in a short
\r
+/** Delay counter between suc
c
essive key strokes. This is to prevent the OS from ignoring multiple keys in a short
\r
* period of time due to key repeats. Two milliseconds works for most OSes.
\r
*/
\r
uint8_t KeyDelayRemaining;
\r
* period of time due to key repeats. Two milliseconds works for most OSes.
\r
*/
\r
uint8_t KeyDelayRemaining;
\r
@@
-312,7
+312,7
@@
bool GetNextReport(USB_KeyboardReport_Data_t* ReportData)
/* Set the flag indicating that a null report must eventually be sent to release all pressed keys */
\r
MustRelease = true;
\r
\r
/* Set the flag indicating that a null report must eventually be sent to release all pressed keys */
\r
MustRelease = true;
\r
\r
- /* Only send the next key on odd reports, so that they are interpersed with null reports to release keys */
\r
+ /* Only send the next key on odd reports, so that they are inter
s
persed with null reports to release keys */
\r
if (OddReport)
\r
{
\r
/* Set the report key code to the key code for the next data bit */
\r
if (OddReport)
\r
{
\r
/* Set the report key code to the key code for the next data bit */
\r
@@
-337,12
+337,12
@@
bool GetNextReport(USB_KeyboardReport_Data_t* ReportData)
return false;
\r
}
\r
\r
return false;
\r
}
\r
\r
-/** Task to read out data from inserted magnetic cards and place the sep
e
rate track data into their respective
\r
+/** Task to read out data from inserted magnetic cards and place the sep
a
rate track data into their respective
\r
* data buffers for later sending to the host as keyboard key presses.
\r
*/
\r
TASK(Magstripe_Read)
\r
{
\r
* data buffers for later sending to the host as keyboard key presses.
\r
*/
\r
TASK(Magstripe_Read)
\r
{
\r
- /* Arrays to hold the buffer pointers, clock and data bit masks for the sep
e
rate card tracks */
\r
+ /* Arrays to hold the buffer pointers, clock and data bit masks for the sep
a
rate card tracks */
\r
const struct
\r
{
\r
BitBuffer_t* Buffer;
\r
const struct
\r
{
\r
BitBuffer_t* Buffer;
\r
@@
-396,7
+396,7
@@
TASK(Magstripe_Read)
}
\r
\r
/** Task for the magnetic card reading and keyboard report generation. This task waits until a card is inserted,
\r
}
\r
\r
/** Task for the magnetic card reading and keyboard report generation. This task waits until a card is inserted,
\r
- * then reads off the card data and sends it to the host as a series of keyboard keypresses via keyboard reports.
\r
+ * then reads off the card data and sends it to the host as a series of keyboard key
presses via keyboard reports.
\r
*/
\r
TASK(USB_Keyboard_Report)
\r
{
\r
*/
\r
TASK(USB_Keyboard_Report)
\r
{
\r