]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/rpp/rpp.h
Implemented SCI-POSIX translation layer to run RPP apps in simulator.
[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 /* Base includes */
16 #include "base.h"
17
18 /* Include configuration */
19 #include "rpp/RppConfig.h"
20
21 /* Include modules */
22 #if rppCONFIG_INCLUDE_DIN == 1
23 #include "rpp/din.h"
24 #endif
25
26 #if rppCONFIG_INCLUDE_LOUT == 1
27 #include "rpp/lout.h"
28 #endif
29
30 #if rppCONFIG_INCLUDE_AIN == 1
31 #include "rpp/ain.h"
32 #endif
33
34 #if rppCONFIG_INCLUDE_AOUT == 1
35 #include "rpp/aout.h"
36 #endif
37
38 #if rppCONFIG_INCLUDE_HBR == 1
39 #include "rpp/hbr.h"
40 #endif
41
42 #if rppCONFIG_INCLUDE_MOUT == 1
43 #include "rpp/mout.h"
44 #endif
45
46 #if rppCONFIG_INCLUDE_HOUT == 1
47 #include "rpp/hout.h"
48 #endif
49
50 #if rppCONFIG_INCLUDE_CAN == 1
51 #include "rpp/can.h"
52 #endif
53
54 #if rppCONFIG_INCLUDE_LIN == 1
55 #include "rpp/lin.h"
56 #endif
57
58 #if rppCONFIG_INCLUDE_FR == 1
59 #include "rpp/fr.h"
60 #endif
61
62 #if rppCONFIG_INCLUDE_SCI == 1
63     #ifdef FREERTOS_POSIX
64         #if rppCONFIG_DRV == 1
65             #error "Your build system is broken. "\
66                    "You are trying to compile the RPP API against POSIX "\
67                    "FreeRTOS for Simulation with dependency on the ARM-only "\
68                    "DRV layer enabled."
69         #endif
70
71         #include "rpp/sci_posix.h"
72     #else
73         #include "rpp/sci.h"
74     #endif
75 #endif
76
77 #if rppCONFIG_INCLUDE_ETH == 1
78 #include "rpp/eth.h"
79 #endif
80
81 #if rppCONFIG_INCLUDE_SDC == 1
82 #include "rpp/sdc.h"
83 #endif
84
85 #if rppCONFIG_INCLUDE_SDR == 1
86 #include "rpp/sdr.h"
87 #endif
88
89
90 /* Library main functions */
91
92 /**
93  * Library initialization function.
94  * Call this method before using this library.
95  *
96  * @return SUCCESS if initialization successful.
97  *          FAILURE is library was already initialized.
98  */
99 int8_t rpp_init();
100
101
102 #endif /* __RPP_RPP_H */