]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/eb_ebb/expansion.h
robofsm: Makefile.omk
[eurobot/public.git] / src / eb_ebb / expansion.h
1 #ifndef EXPANSIONH
2 #define EXPANSIONH
3
4 /**
5   Defines for EbBoard Expansion port and GPIO port names.
6   This table describes relation between expansion/GPIO  port number on EbBoard
7   and its coresponding port number on the processor.
8 */
9
10 #define EXPPORT_1       2       /* P0_2 / SCL */
11 #define EXPPORT_2       3       /* P0_3 / SDA */
12 #define EXPPORT_3       8       /* P0_8 / TXD1 */
13 #define EXPPORT_4       9       /* P0_9 / RXD1 */
14 #define EXPPORT_5       18      /* P0_18 / MISO1 */
15 #define EXPPORT_6       19      /* P0_19 / MOSI1 */
16 #define EXPPORT_7       15      /* P0_15 / EINT2*/
17 #define EXPPORT_8       17      /* P0_17 / SCK1*/
18
19 #define GPIOPORT_1      16      /* P1_16 / GPIO1 */
20 #define GPIOPORT_2      17      /* P1_17 / GPIO2 */
21 #define GPIOPORT_3      18      /* P0_18 / GPIO3 */
22 #define GPIOPORT_4      19      /* P0_19 / GPIO4 */
23 #define GPIOPORT_5      20      /* P0_20 / GPIO5 */
24 #define GPIOPORT_6      21      /* P0_21 / GPIO6 */
25 #define GPIOPORT_7      22      /* P0_22 / GPIO7 */
26 #define GPIOPORT_8      23      /* P0_23 / GPIO8 */
27
28 #endif