Fix headers

This commit is contained in:
Andrew J. Kroll 2013-09-23 16:08:31 -04:00
parent f0f83ec501
commit af2cf97b5e
10 changed files with 10 additions and 133 deletions

11
Usb.cpp
View file

@ -16,17 +16,8 @@ e-mail : support@circuitsathome.com
*/ */
/* USB functions */ /* USB functions */
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "Usb.h" #include "Usb.h"
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
static uint8_t usb_error = 0; static uint8_t usb_error = 0;
static uint8_t usb_task_state; static uint8_t usb_task_state;
@ -452,7 +443,7 @@ void USB::Task(void) //USB state machine
lowspeed = false; lowspeed = false;
break; break;
case LSHOST: case LSHOST:
lowspeed = true; lowspeed = true;
//intentional fallthrough //intentional fallthrough
case FSHOST: //attached case FSHOST: //attached

1
Usb.h
View file

@ -22,6 +22,7 @@ e-mail : support@circuitsathome.com
// Not used anymore? // Not used anymore?
//#define USB_METHODS_INLINE //#define USB_METHODS_INLINE
#include "settings.h" #include "settings.h"
#include <inttypes.h>
#include "address.h" #include "address.h"
#include <assert.h> #include <assert.h>

14
adk.h
View file

@ -20,23 +20,11 @@ e-mail : support@circuitsathome.com
#if !defined(_ADK_H_) #if !defined(_ADK_H_)
#define _ADK_H_ #define _ADK_H_
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h" #include "Usb.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h" #include "printhex.h"
#include "hexdump.h" #include "hexdump.h"
#include "message.h"
#include "confdescparser.h" #include "confdescparser.h"

View file

@ -17,23 +17,11 @@ e-mail : support@circuitsathome.com
#if !defined(__CDCACM_H__) #if !defined(__CDCACM_H__)
#define __CDCACM_H__ #define __CDCACM_H__
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h" #include "Usb.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h" #include "printhex.h"
#include "hexdump.h" #include "hexdump.h"
#include "message.h"
#include "confdescparser.h" #include "confdescparser.h"
@ -140,7 +128,7 @@ typedef struct
uint16_t wIndex; uint16_t wIndex;
uint16_t wLength; uint16_t wLength;
uint16_t bmState; //UART state bitmap for SERIAL_STATE, other notifications variable length uint16_t bmState; //UART state bitmap for SERIAL_STATE, other notifications variable length
} CLASS_NOTIFICATION; } CLASS_NOTIFICATION;
class ACM; class ACM;
@ -169,7 +157,7 @@ protected:
uint8_t bNumEP; // total number of EP in the configuration uint8_t bNumEP; // total number of EP in the configuration
uint32_t qNextPollTime; // next poll time uint32_t qNextPollTime; // next poll time
bool bPollEnable; // poll enable flag bool bPollEnable; // poll enable flag
bool ready; //device ready indicator bool ready; //device ready indicator
EpInfo epInfo[ACM_MAX_ENDPOINTS]; EpInfo epInfo[ACM_MAX_ENDPOINTS];

View file

@ -17,23 +17,12 @@ e-mail : support@circuitsathome.com
#if !defined(__CDCFTDI_H__) #if !defined(__CDCFTDI_H__)
#define __CDCFTDI_H__ #define __CDCFTDI_H__
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h" #include "Usb.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >=100 #include "usbhost.h"
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h" #include "printhex.h"
#include "hexdump.h" #include "hexdump.h"
#include "message.h"
#include "confdescparser.h" #include "confdescparser.h"

View file

@ -17,25 +17,6 @@ e-mail : support@circuitsathome.com
#if !defined(__CDCPROLIFIC_H__) #if !defined(__CDCPROLIFIC_H__)
#define __CDCPROLIFIC_H__ #define __CDCPROLIFIC_H__
#include <inttypes.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 "cdcacm.h" #include "cdcacm.h"
#define PL_VID 0x067B #define PL_VID 0x067B

14
hid.h
View file

@ -17,23 +17,11 @@ e-mail : support@circuitsathome.com
#if !defined(__HID_H__) #if !defined(__HID_H__)
#define __HID_H__ #define __HID_H__
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h" #include "Usb.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#include "printhex.h" #include "printhex.h"
#include "hexdump.h" #include "hexdump.h"
#include "message.h"
#include "confdescparser.h" #include "confdescparser.h"
#include "hidusagestr.h" #include "hidusagestr.h"

View file

@ -17,27 +17,8 @@ e-mail : support@circuitsathome.com
#if !defined(__HIDBOOT_H__) #if !defined(__HIDBOOT_H__)
#define __HIDBOOT_H__ #define __HIDBOOT_H__
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h"
#include "hid.h" #include "hid.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"
#define KEY_SPACE 0x2c #define KEY_SPACE 0x2c
#define KEY_ZERO 0x27 #define KEY_ZERO 0x27
#define KEY_ZERO2 0x62 #define KEY_ZERO2 0x62

View file

@ -17,24 +17,6 @@ e-mail : support@circuitsathome.com
#if !defined(__HIDDESCRIPTORPARSER_H__) #if !defined(__HIDDESCRIPTORPARSER_H__)
#define __HIDDESCRIPTORPARSER_H__ #define __HIDDESCRIPTORPARSER_H__
#include <inttypes.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" #include "hid.h"
class ReportDescParserBase : public USBReadParser { class ReportDescParserBase : public USBReadParser {

View file

@ -17,20 +17,8 @@ e-mail : support@circuitsathome.com
#if !defined(__USBHUB_H__) #if !defined(__USBHUB_H__)
#define __USBHUB_H__ #define __USBHUB_H__
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h" #include "Usb.h"
#include <avr/pgmspace.h>
#if defined(ARDUINO) && ARDUINO >=100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
#define USB_DESCRIPTOR_HUB 0x09 // Hub descriptor type #define USB_DESCRIPTOR_HUB 0x09 // Hub descriptor type