]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/rpp/rpp.h
Merge branch 'can'
[pes-rpp/rpp-lib.git] / rpp / include / rpp / rpp.h
1 /**
2  * RPP API library header file.
3  *
4  * @file rpp.h
5  *
6  * @copyright Copyright (C) 2013 Czech Technical University in Prague
7  *
8  * @author Carlos Jenkins <carlos@jenkins.co.cr>
9  */
10
11
12 #ifndef __RPP_RPP_H
13 #define __RPP_RPP_H
14
15 extern void rpp_printf(const char* string, ...);
16
17 /* Base includes */
18 #include "base.h"
19
20 /* Include configuration */
21 #include "rpp/RppConfig.h"
22
23 /* Include modules */
24 #if rppCONFIG_INCLUDE_DIN == 1
25 #include "rpp/din.h"
26 #endif
27
28 #if rppCONFIG_INCLUDE_LOUT == 1
29 #include "rpp/lout.h"
30 #endif
31
32 #if rppCONFIG_INCLUDE_ADC == 1
33 #include "rpp/adc.h"
34 #endif
35
36 #if rppCONFIG_INCLUDE_DAC == 1
37 #include "rpp/dac.h"
38 #endif
39
40 #if rppCONFIG_INCLUDE_HBR == 1
41 #include "rpp/hbr.h"
42 #endif
43
44 #if rppCONFIG_INCLUDE_MOUT == 1
45 #include "rpp/mout.h"
46 #endif
47
48 #if rppCONFIG_INCLUDE_HOUT == 1
49 #include "rpp/hout.h"
50 #endif
51
52 #if rppCONFIG_INCLUDE_CAN == 1
53 #include "rpp/can.h"
54 #endif
55
56 #if rppCONFIG_INCLUDE_LIN == 1
57 #include "rpp/lin.h"
58 #endif
59
60 #if rppCONFIG_INCLUDE_FR == 1
61 #include "rpp/fr.h"
62 #endif
63
64 #if rppCONFIG_INCLUDE_SCI == 1
65     #include "rpp/sci.h"
66
67     #ifdef FREERTOS_POSIX
68         #if rppCONFIG_DRV == 1
69             #error "Your build system is broken. "\
70                     "You are trying to compile the RPP API against POSIX "\
71                     "FreeRTOS for Simulation with dependency on the ARM-only "\
72                     "DRV layer enabled."
73         #endif
74
75         #include "rpp/sci_posix.h"
76     #endif
77 #endif
78
79 #if rppCONFIG_INCLUDE_ETH == 1
80 #include "rpp/eth.h"
81 #endif
82
83 #if rppCONFIG_INCLUDE_SDC == 1
84 #include "rpp/sdc.h"
85 #endif
86
87 #if rppCONFIG_INCLUDE_SDR == 1
88 #include "rpp/sdr.h"
89 #endif
90
91
92 /* Library main functions */
93
94 /**
95  * Library initialization function.
96  *
97  * Call this method before using this library.
98  *
99  * @return SUCCESS if initialization successful.\n
100  *          FAILURE is library was already initialized.
101  */
102 int8_t rpp_init();
103
104
105 #endif /* __RPP_RPP_H */