Blame view

atmega16u2/custom/lufa-LUFA-170418/PolytechLille/PAD/PAD.h 1.09 KB
97064000   root   16u2 desc terminé...
1
2
  #ifndef _PAD_H_
  #define _PAD_H_
8a7dc1f5   adorian   Seance 4
3
4
5
6
7
8
9
10
11
12
13
14
  
  	/* Includes: */
  		#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>
97064000   root   16u2 desc terminé...
15
  		#include <LUFA/Drivers/Peripheral/Serial.h>
8a7dc1f5   adorian   Seance 4
16
  
bfb1101b   pifou   com 16u2 <-> PC c...
17
18
19
20
21
22
23
24
25
26
27
28
29
  	/* Macros: */
  		/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
  		#define LEDMASK_USB_NOTREADY        LEDS_LED1
  
  		/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
  		#define LEDMASK_USB_ENUMERATING     (LEDS_LED2 | LEDS_LED3)
  
  		/** LED mask for the library LED driver, to indicate that the USB interface is ready. */
  		#define LEDMASK_USB_READY           (LEDS_LED2 | LEDS_LED4)
  
  		/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
  		#define LEDMASK_USB_ERROR           (LEDS_LED1 | LEDS_LED3)
  
8a7dc1f5   adorian   Seance 4
30
31
  	/* Function Prototypes: */
  		void SetupHardware(void);
58b09a0b   root   Ca marche git status
32
  		void PAD_Task(void);
bfb1101b   pifou   com 16u2 <-> PC c...
33
  		void EVENT_USB_Device_ControlRequest(void);
8a7dc1f5   adorian   Seance 4
34
  #endif