]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/rpp/rpp.h
Add SPI into RPP layer
[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, 2014, 2015 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 "rpp/mutex.h"
19
20 /* Include modules */
21 #if defined(TARGET_POSIX)
22 #include "rpp/adc.h"
23 #include "rpp/can.h"
24 #include "rpp/sci.h"
25 #include "rpp/sci_posix.h"
26 #elif defined(TARGET_RM48_HDK)
27 #include "rpp/adc.h"
28 #include "rpp/can.h"
29 #include "rpp/sci.h"
30 #include "rpp/gio.h"
31 #elif defined(TARGET_TMS570_HDK) || defined(TARGET_TMS570_HYDCTR)
32 #include "rpp/adc.h"
33 #include "rpp/can.h"
34 #include "rpp/sci.h"
35 #include "rpp/gio.h"
36 #elif defined(TARGET_TMS570_RPP)
37 #include "rpp/adc.h"
38 #include "rpp/can.h"
39 #include "rpp/dac.h"
40 #include "rpp/din.h"
41 #include "rpp/eth.h"
42 #include "rpp/fr.h"
43 #include "rpp/gio.h"
44 #include "rpp/hbr.h"
45 #include "rpp/hout.h"
46 #include "rpp/irc.h"
47 #include "rpp/lin.h"
48 #include "rpp/lout.h"
49 #include "rpp/mout.h"
50 #include "rpp/sci.h"
51 #include "rpp/sdr.h"
52 #else /* if defined(TARGET_POSIX) */
53 #error No supported target specified!
54 #endif /* TARGET_TMS570_HDK */
55
56 #if defined(TARGET_HAS_SPI)
57 #include "rpp/spi.h"
58 #endif
59
60 /* Library main functions */
61
62 /**
63  * Library initialization function.
64  *
65  * This is a convenience function, that initializes all peripherals.
66  * If the application does not use all the peripherals it is better to
67  * call directly the rpp_<periph>_init() functions for the used
68  * peripherals as the resulting binary will be smaller.
69  *
70  * @return SUCCESS if initialization successful.\n
71  *          FAILURE is library was already initialized.
72  */
73 int8_t rpp_init();
74
75 #endif /* __RPP_RPP_H */