-
Notifications
You must be signed in to change notification settings - Fork 1
/
Interrup.h
56 lines (48 loc) · 1.05 KB
/
Interrup.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* File: Interrup.h
* Author: BatCaverna
* Interrupção [...]
* Created on 23 de Março de 2016, 13:26
*/
#ifndef INTERRUP_H
#define INTERRUP_H
#include <pconfig.h>
#include <delays.h>
#include <xc.h>
//#ifndef useSerial
// #define SERIAL_H
//#endif
//#ifndef usePWM
// #define PWM_H
//#endif
//#ifndef useADC
// #define ADC_H
//#endif
//#ifndef usePID
// #define PID_H
//#endif
//#ifndef useWifi
// #define WIFITCP_H
//#endif
//#ifndef useGiroAccel
// #define GiroAccel_H
//#endif
#include "Serial.h"
#include "PWM.h"
#include "ADC.h"
#include "PID.h"
#include "wifiTCP.h"
#include "ADXL345.h"
void interrupt INTERRUPTION();
void interrupt high_priority INTERRUPTION_TIMERS(); ///INTERRUPÇÃO
void interrupt low_priority INTERRUPTION_peripheral();
//#ifdef usePWM
void INTERRUPTION_Timer0();
//#endif
//#ifdef useSerial
void INTERRUPTION_Serial();
//#endif
//#ifdef useADC
void INTERRUPTION_ADC();
//#endif
#endif /* INTERRUP_H */