#define INCLUDE_FROM_BOOTLOADERCDC_C\r
#include "BootloaderCDC.h"\r
\r
-/* Globals: */\r
/** Line coding options for the virtual serial port. Although the virtual serial port data is never\r
* sent through a physical serial port, the line encoding data must still be read and preserved from\r
* the host, or the host will detect a problem and fail to open the port. This structure contains the\r
#include "BootloaderMIDI.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MIDI.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "TeensyHID.h"\r
\r
-/* Global Variables: */\r
/** Flag to indicate if the bootloader should be running, or should exit and allow the application code to run\r
* via a soft reset. When cleared, the bootloader will abort, the USB interface will shut down and the application\r
* started via a forced watchdog reset.\r
\r
#include "Ethernet.h"\r
\r
-/* Global Variables: */\r
/** Constant for convenience when checking against or setting a MAC address to the virtual server MAC address. */\r
const MAC_Address_t ServerMACAddress = {SERVER_MAC_ADDRESS};\r
\r
#define INCLUDE_FROM_TCP_C\r
#include "TCP.h"\r
\r
-/* Global Variables: */\r
/** Port state table array. This contains the current status of TCP ports in the device. To save on space, only open ports are\r
* stored - closed ports may be overwritten at any time, and the system will assume any ports not present in the array are closed. This\r
* allows for MAX_OPEN_TCP_PORTS to be less than the number of ports used by the application if desired.\r
\r
#include "CDC.h"\r
\r
-/* Globals: */\r
/** Contains the current baud rate and other settings of the virtual serial port. While this demo does not use\r
* the physical USART and thus does not use these settings, they must still be retained and returned to the host\r
* upon request or the host will assume the device is non-functional.\r
.ParityType = Parity_None,\r
.DataBits = 8 };\r
\r
+\r
#if 0\r
/* NOTE: Here you can set up a standard stream using the created virtual serial port, so that the standard stream functions in\r
* <stdio.h> can be used on the virtual serial port (e.g. fprintf(&USBSerial, "Test"); to print a string).\r
\r
#include "DualCDC.h"\r
\r
-/* Globals: */\r
/** Contains the current baud rate and other settings of the first virtual serial port. While this demo does not use\r
* the physical USART and thus does not use these settings, they must still be retained and returned to the host\r
* upon request or the host will assume the device is non-functional.\r
.ParityType = Parity_None,\r
.DataBits = 8 };\r
\r
+\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the USB management task.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "Joystick.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "Keyboard.h"\r
\r
-/* Global Variables */\r
/** Indicates what report mode the host has requested, true for normal HID reporting mode, false for special boot\r
* protocol reporting mode.\r
*/\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the USB management task.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "KeyboardMouse.h"\r
\r
-/* Global Variables */\r
/** Global structure to hold the current keyboard interface HID report, for transmission to the host */\r
USB_KeyboardReport_Data_t KeyboardReportData;\r
\r
/** Global structure to hold the current mouse interface HID report, for transmission to the host */\r
USB_MouseReport_Data_t MouseReportData;\r
\r
+\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the USB management task.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MIDI.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#define INCLUDE_FROM_MASSSTORAGE_C\r
#include "MassStorage.h"\r
\r
-/* Global Variables */\r
/** Structure to hold the latest Command Block Wrapper issued by the host, containing a SCSI command to execute. */\r
CommandBlockWrapper_t CommandBlock;\r
\r
/** Flag to asynchronously abort any in-progress data transfers upon the reception of a mass storage reset command. */\r
volatile bool IsMassStoreReset = false;\r
\r
+\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "Mouse.h"\r
\r
-/* Global Variables */\r
/** Indicates what report mode the host has requested, true for normal HID reporting mode, false for special boot\r
* protocol reporting mode.\r
*/\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "Ethernet.h"\r
\r
-/* Global Variables: */\r
/** Ethernet Frame buffer structure, to hold the incoming Ethernet frame from the host. */\r
Ethernet_Frame_Info_t FrameIN;\r
\r
#define INCLUDE_FROM_RNDIS_C\r
#include "RNDIS.h"\r
\r
-/* Global Variables: */\r
/** Physical MAC address of the network adapter, which becomes the MAC address of the host for packets sent to the adapter. */\r
static MAC_Address_t PROGMEM AdapterMACAddress = {ADAPTER_MAC_ADDRESS};\r
\r
#define INCLUDE_FROM_TCP_C\r
#include "TCP.h"\r
\r
-/* Global Variables: */\r
/** Port state table array. This contains the current status of TCP ports in the device. To save on space, only open ports are\r
* stored - closed ports may be overwritten at any time, and the system will assume any ports not present in the array are closed. This\r
* allows for MAX_OPEN_TCP_PORTS to be less than the number of ports used by the application if desired.\r
#include "RNDISEthernet.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the USB management task.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "USBtoSerial.h"\r
\r
-/* Globals: */\r
/** Contains the current baud rate and other settings of the virtual serial port.\r
*\r
* These values are set by the host via a class-specific request, and the physical USART should be reconfigured to match the\r
/** Flag to indicate if the USART is currently transmitting data from the Rx_Buffer circular buffer. */\r
volatile bool Transmitting = false;\r
\r
+\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MouseHostDevice.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
};\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "CDCHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "GenericHIDHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "KeyboardHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "KeyboardHostWithParser.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MIDIHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#define INCLUDE_FROM_MASSSTORE_COMMANDS_C\r
#include "MassStoreCommands.h"\r
\r
-/* Globals: */\r
/** Current Tag value used in issued CBWs to the device. This is automatically incremented\r
* each time a command is sent, and is not externally accessible.\r
*/\r
\r
#include "MassStorageHost.h"\r
\r
-/* Globals */\r
/** Index of the highest available LUN (Logical Unit) in the attached Mass Storage Device */\r
uint8_t MassStore_MaxLUNIndex;\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MouseHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "MouseHostWithParser.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
#include "PrinterHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
\r
#include "StillImageCommands.h"\r
\r
-/* Globals: */\r
/** PIMA block container for the block to send to the device */\r
PIMA_Container_t PIMA_SendBlock;\r
\r
#include "StillImageHost.h"\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r
* library API more streamlined and robust. You can download AVR-GCC for free in a convenient windows package, \r
* from the the WinAVR website.\r
*\r
- * Accompanying LUFA in the download package is a set of example demo applications, plus several Bootloaders (DFU, CDC and HID\r
- * class) and open source LUFA powered projects.\r
+ * Accompanying LUFA in the download package is a set of example demo applications, plus several Bootloaders of different classes\r
+ * and open source LUFA powered projects.\r
*\r
* <b>Subsections:</b>\r
* - \subpage Page_Licence Project licence\r
* - \subpage Page_Donating Donating to Support this Project\r
* - \subpage Page_LibraryApps Overview of included Demos, Bootloaders and Projects\r
*\r
- *\r
* <small><i>Logo design by EDIGMA.COM</i></small>\r
*/\r
\r
\r
/** Main program entry point. This routine configures the hardware required by the application, then\r
- * starts the scheduler to run the application tasks.\r
+ * enters a loop to run the application tasks in sequence.\r
*/\r
int main(void)\r
{\r