]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/rpp/gio.h
Merge port and gpio definitions into one file in the DRV layer
[pes-rpp/rpp-lib.git] / rpp / include / rpp / gio.h
1 /*
2  * gio.h
3  *
4  *  Created on: 29.10.2014
5  *      Author: Michal Horn
6  */
7
8 #ifndef GIO_H_
9 #define GIO_H_
10
11 #include "drv/digital_io.h"
12
13 #define RPP_GIO_PORT_GIOA   0x2
14 #define RPP_GIO_PORT_GIOB   0x4
15 #define RPP_GIO_PORT_NHET1  0x8
16 #define RPP_GIO_PORT_ALL    (RPP_GIO_PORT_GIOA|RPP_GIO_PORT_GIOB|RPP_GIO_PORT_NHET1)
17
18 int8_t rpp_gio_init(uint32_t init_ports);
19
20 #endif /* GIO_H_ */