-
Notifications
You must be signed in to change notification settings - Fork 0
/
SensorLoop.h
50 lines (37 loc) · 840 Bytes
/
SensorLoop.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
/**
* @file: SensorLoop.h
* @brief: A interrupt driven timer loop that queues and interprets
* data from the different sensors.
*
* @author: Connor Martin
* @date: Oct 23, 2013
*
* @preconditions:
*
* @device:
* -PIC32MX695F512L
*
* @remarks:
*/
#ifndef SENSORLOOP_H
#define SENSORLOOP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <plib.h>
#include "FIFOSPI2.h"
#include "FIFOI2C2.h"
#include "ADXL362.h"
#include "L3G4200D.h"
#include "HMC5883L.h"
//******************************************************************************
//Function Prototypes
//******************************************************************************
/**
* Sets up the IRQ overflow for Timer1 to run at div 8 and a counter of 0xFFFF.
*/
void SensorLoop_SetupAll();
#ifdef __cplusplus
}
#endif
#endif /* TIMER1_LOOP_H */