-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibrary.h
48 lines (36 loc) · 1.01 KB
/
library.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
/**
* Embedded Drivers Library
*
* This library is designed to allow for a common library for drivers across
* all boards used for the Missouri S&T Solar Car Team
*
*
* Authors: Michael Rouse
*/
#ifndef __LIBRARY__
#define __LIBRARY__
#ifndef __GNUC__
/* Force the user to compile using GCC */
#error (╯°□°)╯ ┻━┻ You need to be using GCC as your compiler!
#endif
#ifdef UNIT_TEST
#include <stdlib.h>
#endif
#include "datatypes.h"
/* Include Utility Interfaces */
#include "utils/interface.h"
/* Include driver interfaces that are apart of this library */
#undef LOAD_CUSTOM_DRIVER_CODE
#undef RUN_SPEC_FILE_LIKE_C_FILE
#include "can/interface.h"
#include "microcontroller/interface.h"
#include "microcontroller/loader.h"
#include "can_controller/interface.h"
#include "can_controller/loader.h"
#include "spi/interface.h"
#include "pin_control/interface.h"
#include "interrupts/interface.h"
/* Library Information */
#define LIBRARY_NAME Embedded Drivers Library
#define LIBRARY_VERSION v1.0
#endif