Blame view

atmega16u2/custom/Manette/Manette.h 599 Bytes
659c68f6   pifou   Recherches sur at...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  #ifndef _RELAYBOARD_H_
  #define _RELAYBOARD_H_
  
  		#include <avr/io.h>
  		#include <avr/wdt.h>
  		#include <avr/power.h>
  		#include <avr/interrupt.h>
  
  		#include "Descriptors.h"
  
  		#include <LUFA/Drivers/Board/LEDs.h>
  		#include <LUFA/Drivers/USB/USB.h>
  		#include <LUFA/Platform/Platform.h>
  
  	/* Macros: */
  		#define RELAY1      (1 << 7)
  		#define RELAY2      (1 << 6)
  		#define RELAY3      (1 << 5)
  		#define RELAY4      (1 << 4)
  		#define ALL_RELAYS  (RELAY1 | RELAY2 | RELAY3 | RELAY4)
  
  	/* Function Prototypes: */
  		void SetupHardware(void);
  
  		void EVENT_USB_Device_ControlRequest(void);
  
  #endif