a8ab8db9927c2552cac5c25326505fc6f3d1a3e3
   3      Copyright (C) Dean Camera, 2011. 
   5   dean [at] fourwalledcubicle [dot] com 
  10   Copyright 2010  OBinou (obconseil [at] gmail [dot] com) 
  11   Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com) 
  13   Permission to use, copy, modify, distribute, and sell this 
  14   software and its documentation for any purpose is hereby granted 
  15   without fee, provided that the above copyright notice appear in 
  16   all copies and that both that the copyright notice and this 
  17   permission notice and warranty disclaimer appear in supporting 
  18   documentation, and that the name of the author not be used in 
  19   advertising or publicity pertaining to distribution of the 
  20   software without specific, written prior permission. 
  22   The author disclaim all warranties with regard to this 
  23   software, including all implied warranties of merchantability 
  24   and fitness.  In no event shall the author be liable for any 
  25   special, indirect or consequential damages or any damages 
  26   whatsoever resulting from loss of use, data or profits, whether 
  27   in an action of contract, negligence or other tortious action, 
  28   arising out of or in connection with the use or performance of 
  34  *  Header file for RelayBoard.c. 
  37 #ifndef _RELAYBOARD_H_ 
  38 #define _RELAYBOARD_H_ 
  43                 #include <avr/power.h> 
  44                 #include <avr/interrupt.h> 
  46                 #include "Descriptors.h" 
  48                 #include <LUFA/Version.h> 
  49                 #include <LUFA/Drivers/Board/LEDs.h> 
  50                 #include <LUFA/Drivers/USB/USB.h> 
  53                 #define RELAY1      (1 << 7) 
  54                 #define RELAY2      (1 << 6) 
  55                 #define RELAY3      (1 << 5) 
  56                 #define RELAY4      (1 << 4) 
  57                 #define ALL_RELAYS  (RELAY1 | RELAY2 | RELAY3 | RELAY4) 
  59         /* Function Prototypes: */ 
  60                 void SetupHardware(void); 
  62                 void EVENT_USB_Device_ControlRequest(void);