Removed all unnecessary includes since there is no need to do that anymore

Also renamed all example extensions to .ino
This commit is contained in:
Kristian Sloth Lauszus 2013-10-02 00:49:46 +02:00
parent f21f70c0b9
commit 45c1297a91
28 changed files with 19 additions and 264 deletions

View file

@ -1,19 +1,5 @@
#include <avr/pgmspace.h>
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <hidboot.h> #include <hidboot.h>
#include <usbhub.h>
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
class KbdRptParser : public KeyboardReportParser class KbdRptParser : public KeyboardReportParser
{ {

View file

@ -1,5 +1,5 @@
#include <usbhub.h>
#include <hidboot.h> #include <hidboot.h>
#include <usbhub.h>
class MouseRptParser : public MouseReportParser class MouseRptParser : public MouseReportParser
{ {

View file

@ -1,17 +1,5 @@
#include <avr/pgmspace.h>
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <hidboot.h> #include <hidboot.h>
#include <printhex.h> #include <usbhub.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
class MouseRptParser : public MouseReportParser class MouseRptParser : public MouseReportParser
{ {

View file

@ -1,11 +1,9 @@
#include <usbhub.h>
#include <hid.h> #include <hid.h>
#include <hiduniversal.h> #include <hiduniversal.h>
#include <usbhub.h>
#include "hidjoystickrptparser.h" #include "hidjoystickrptparser.h"
USB Usb; USB Usb;
USBHub Hub(&Usb); USBHub Hub(&Usb);
HIDUniversal Hid(&Usb); HIDUniversal Hid(&Usb);

View file

@ -1,7 +1,6 @@
#if !defined(__HIDJOYSTICKRPTPARSER_H__) #if !defined(__HIDJOYSTICKRPTPARSER_H__)
#define __HIDJOYSTICKRPTPARSER_H__ #define __HIDJOYSTICKRPTPARSER_H__
#include <Usb.h>
#include <hid.h> #include <hid.h>
struct GamePadEventData { struct GamePadEventData {

View file

@ -1,21 +1,7 @@
#include <avr/pgmspace.h>
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <hid.h> #include <hid.h>
#include <hiduniversal.h> #include <hiduniversal.h>
#include <hidescriptorparser.h> #include <hidescriptorparser.h>
#include <printhex.h> #include <usbhub.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
#include "pgmstrings.h" #include "pgmstrings.h"

View file

@ -1,25 +1,11 @@
/* Simplified Logitech Extreme 3D Pro Joystick Report Parser */ /* Simplified Logitech Extreme 3D Pro Joystick Report Parser */
#include <avr/pgmspace.h>
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <hid.h> #include <hid.h>
#include <hiduniversal.h> #include <hiduniversal.h>
#include <usbhub.h>
#include "le3dp_rptparser.h" #include "le3dp_rptparser.h"
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
USB Usb; USB Usb;
USBHub Hub(&Usb); USBHub Hub(&Usb);
HIDUniversal Hid(&Usb); HIDUniversal Hid(&Usb);

View file

@ -1,25 +1,7 @@
#if !defined(__HIDJOYSTICKRPTPARSER_H__) #if !defined(__HIDJOYSTICKRPTPARSER_H__)
#define __HIDJOYSTICKRPTPARSER_H__ #define __HIDJOYSTICKRPTPARSER_H__
#include <inttypes.h> #include <hid.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h"
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h"
#include "hexdump.h"
#include "message.h"
#include "confdescparser.h"
#include "hid.h"
struct GamePadEventData struct GamePadEventData
{ {

View file

@ -1,26 +1,12 @@
/* Digital Scale Output. Written for Stamps.com Model 510 */ /* Digital Scale Output. Written for Stamps.com Model 510 */
/* 5lb Digital Scale; any HID scale with Usage page 0x8d should work */ /* 5lb Digital Scale; any HID scale with Usage page 0x8d should work */
#include <avr/pgmspace.h>
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <hid.h> #include <hid.h>
#include <hiduniversal.h> #include <hiduniversal.h>
#include <usbhub.h>
#include "scale_rptparser.h" #include "scale_rptparser.h"
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
USB Usb; USB Usb;
USBHub Hub(&Usb); USBHub Hub(&Usb);
HIDUniversal Hid(&Usb); HIDUniversal Hid(&Usb);

View file

@ -1,26 +1,8 @@
#if !defined(__SCALERPTPARSER_H__) #if !defined(__SCALERPTPARSER_H__)
#define __SCALERPTPARSER_H__ #define __SCALERPTPARSER_H__
#include <inttypes.h> #include <Max_LCD.h>
#include <avr/pgmspace.h> #include <hid.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h"
#include "Max_LCD.h"
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h"
#include "hexdump.h"
#include "message.h"
#include "confdescparser.h"
#include "hid.h"
/* Scale status constants */ /* Scale status constants */
#define REPORT_FAULT 0x01 #define REPORT_FAULT 0x01

View file

@ -5,6 +5,7 @@
*/ */
#include <PS3USB.h> #include <PS3USB.h>
USB Usb; USB Usb;
/* You can create the instance of the class in two ways */ /* You can create the instance of the class in two ways */
PS3USB PS3(&Usb); // This will just create the instance PS3USB PS3(&Usb); // This will just create the instance

View file

@ -1,11 +1,4 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include "pgmstrings.h" #include "pgmstrings.h"

View file

@ -6,6 +6,7 @@
*/ */
#include <XBOXRECV.h> #include <XBOXRECV.h>
USB Usb; USB Usb;
XBOXRECV Xbox(&Usb); XBOXRECV Xbox(&Usb);

View file

@ -5,6 +5,7 @@
*/ */
#include <XBOXUSB.h> #include <XBOXUSB.h>
USB Usb; USB Usb;
XBOXUSB Xbox(&Usb); XBOXUSB Xbox(&Usb);

View file

@ -1,18 +1,5 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <cdcacm.h> #include <cdcacm.h>
#include <usbhub.h>
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
#include "pgmstrings.h" #include "pgmstrings.h"

View file

@ -1,7 +1,5 @@
// The source for the Android application can be found at the following link: https://github.com/Lauszus/ArduinoBlinkLED // The source for the Android application can be found at the following link: https://github.com/Lauszus/ArduinoBlinkLED
// The code for the Android application is heavily based on this guide: http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/ by Miguel // The code for the Android application is heavily based on this guide: http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/ by Miguel
#include <Usb.h>
#include <adk.h> #include <adk.h>
USB Usb; USB Usb;

View file

@ -1,18 +1,9 @@
/**/ /**/
/* A sketch demonstrating data exchange between two USB devices - a HID barcode scanner and ADK-compatible Android phone */ /* A sketch demonstrating data exchange between two USB devices - a HID barcode scanner and ADK-compatible Android phone */
/**/ /**/
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <adk.h> #include <adk.h>
#include <hidboot.h> #include <hidboot.h>
#include <usbhub.h>
USB Usb; USB Usb;
USBHub Hub1(&Usb); USBHub Hub1(&Usb);

View file

@ -1,18 +1,5 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <adk.h> #include <adk.h>
#include <usbhub.h>
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
USB Usb; USB Usb;
USBHub hub0(&Usb); USBHub hub0(&Usb);

View file

@ -1,13 +1,5 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <adk.h> #include <adk.h>
#include <usbhub.h>
USB Usb; USB Usb;
//USBHub Hub(&Usb); //USBHub Hub(&Usb);

View file

@ -1,13 +1,5 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <adk.h> #include <adk.h>
#include <usbhub.h>
USB Usb; USB Usb;

View file

@ -3,19 +3,7 @@
/* for GPIO test to pass you need to connect GPIN0 to GPOUT7, GPIN1 to GPOUT6, etc. */ /* for GPIO test to pass you need to connect GPIN0 to GPOUT7, GPIN1 to GPOUT6, etc. */
/* otherwise press any key after getting GPIO error to complete the test */ /* otherwise press any key after getting GPIO error to complete the test */
/**/ /**/
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
/* variables */ /* variables */
uint8_t rcode; uint8_t rcode;

View file

@ -1,18 +1,5 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include <cdcftdi.h> #include <cdcftdi.h>
#include <usbhub.h>
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
#include "pgmstrings.h" #include "pgmstrings.h"

View file

@ -1,11 +1,4 @@
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
#include "pgmstrings.h" #include "pgmstrings.h"
USB Usb; USB Usb;

View file

@ -1,21 +1,9 @@
/* Arduino terminal for PL2303 USB to serial converter and DealeXtreme GPRS modem. */ /* Arduino terminal for PL2303 USB to serial converter and DealeXtreme GPRS modem. */
/* USB support */ /* USB support */
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
/* CDC support */ /* CDC support */
#include <cdcacm.h> #include <cdcacm.h>
#include <cdcprolific.h> #include <cdcprolific.h>
/* Debug support */
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
class PLAsyncOper : public CDCAsyncOper class PLAsyncOper : public CDCAsyncOper
{ {

View file

@ -1,22 +1,10 @@
/* USB Host to PL2303-based USB GPS unit interface */ /* USB Host to PL2303-based USB GPS unit interface */
/* Navibee GM720 receiver - Sirf Star III */ /* Navibee GM720 receiver - Sirf Star III */
/* USB support */ /* USB support */
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
/* CDC support */ /* CDC support */
#include <cdcacm.h> #include <cdcacm.h>
#include <cdcprolific.h> #include <cdcprolific.h>
/* Debug support */
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
class PLAsyncOper : public CDCAsyncOper class PLAsyncOper : public CDCAsyncOper
{ {

View file

@ -4,25 +4,12 @@
/* test_with_gps_device library example modified for PL2302 access */ /* test_with_gps_device library example modified for PL2302 access */
/* USB support */ /* USB support */
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
/* CDC support */ /* CDC support */
#include <cdcacm.h> #include <cdcacm.h>
#include <cdcprolific.h> #include <cdcprolific.h>
/* Debug support */
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
#include <TinyGPS.h> #include <TinyGPS.h>
/* This sample code demonstrates the normal use of a TinyGPS object. /* This sample code demonstrates the normal use of a TinyGPS object.

View file

@ -1,22 +1,10 @@
/* Arduino terminal for PL2303 USB to serial converter and XBee radio. */ /* Arduino terminal for PL2303 USB to serial converter and XBee radio. */
/* Inserts linefeed after carriage return in data sent to and received from Xbee */ /* Inserts linefeed after carriage return in data sent to and received from Xbee */
/* USB support */ /* USB support */
#include <avrpins.h>
#include <max3421e.h>
#include <usbhost.h>
#include <usb_ch9.h>
#include <Usb.h>
#include <usbhub.h> #include <usbhub.h>
#include <avr/pgmspace.h>
#include <address.h>
/* CDC support */ /* CDC support */
#include <cdcacm.h> #include <cdcacm.h>
#include <cdcprolific.h> #include <cdcprolific.h>
/* Debug support */
#include <printhex.h>
#include <message.h>
#include <hexdump.h>
#include <parsetools.h>
class PLAsyncOper : public CDCAsyncOper class PLAsyncOper : public CDCAsyncOper
{ {

0
examples/testusbhostFAT/testusbhostFAT.ino Executable file → Normal file
View file