RTEMS 6.3
Loading...
Searching...
No Matches
beagleboneblack.h
Go to the documentation of this file.
1
8
16
17#ifndef LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
18#define LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
19
20/* In general GPIOs of BeagleBone Black/White can be addressed
21 * using two 46-pin dual-row expansion connectors P9 and P8,
22 * which are also known as Expansion A and Expansion B Connectors,
23 * respectively.
24 *
25 * Each Expansion Connector consists of 23 pins. So 2x23 pins would
26 * be available. It has 4 GPIO Banks each consists of 32 pins each.
27 * Toatal number of pins are 128 (32x4).
28 *
29 * So for mapping between generalized pin name and the unique pin
30 * numbers in this header file Macros are declared.
31 */
32
33/* USER LEDs of BeagleBone Black */
34#define BBB_LED_USR0 53 /* USR LED0 */
35#define BBB_LED_USR1 54 /* USR LED1 */
36#define BBB_LED_USR2 55 /* USR LED2 */
37#define BBB_LED_USR3 56 /* USR LED3 */
38
39/* Header P8 of BeagleBone Black */
40#define BBB_P8_3 38 /* GPIO1_6 */
41#define BBB_P8_4 39 /* GPIO1_7 */
42#define BBB_P8_5 34 /* GPIO1_2 */
43#define BBB_P8_6 35 /* GPIO1_3 */
44#define BBB_P8_7 66 /* GPIO2_2 */
45#define BBB_P8_8 67 /* GPIO2_3 */
46#define BBB_P8_9 69 /* GPIO2_5 */
47#define BBB_P8_10 68 /* GPIO2_4 */
48#define BBB_P8_11 45 /* GPIO1_13 */
49#define BBB_P8_12 44 /* GPIO1_12 */
50#define BBB_P8_13 23 /* GPIO0_23 */
51#define BBB_P8_14 26 /* GPIO0_26 */
52#define BBB_P8_15 47 /* GPIO1_15 */
53#define BBB_P8_16 46 /* GPIO1_14 */
54#define BBB_P8_17 27 /* GPIO0_27 */
55#define BBB_P8_18 65 /* GPIO2_1 */
56#define BBB_P8_19 22 /* GPIO0_22 */
57#define BBB_P8_20 63 /* GPIO1_31 */
58#define BBB_P8_21 62 /* GPIO1_30 */
59#define BBB_P8_22 37 /* GPIO1_5 */
60#define BBB_P8_23 36 /* GPIO1_4 */
61#define BBB_P8_24 33 /* GPIO1_1 */
62#define BBB_P8_25 32 /* GPIO1_0 */
63#define BBB_P8_26 61 /* GPIO1_29 */
64#define BBB_P8_27 86 /* GPIO2_22 */
65#define BBB_P8_28 88 /* GPIO2_24 */
66#define BBB_P8_29 87 /* GPIO2_23 */
67#define BBB_P8_30 89 /* GPIO2_25 */
68#define BBB_P8_31 10 /* GPIO0_10 */
69#define BBB_P8_32 11 /* GPIO0_11 */
70#define BBB_P8_33 9 /* GPIO0_9 */
71#define BBB_P8_34 81 /* GPIO2_17 */
72#define BBB_P8_35 8 /* GPIO0_8 */
73#define BBB_P8_36 80 /* GPIO2_16 */
74#define BBB_P8_37 78 /* GPIO2_14 */
75#define BBB_P8_38 79 /* GPIO2_15 */
76#define BBB_P8_39 76 /* GPIO2_12 */
77#define BBB_P8_40 77 /* GPIO2_13 */
78#define BBB_P8_41 74 /* GPIO2_10 */
79#define BBB_P8_42 75 /* GPIO2_11 */
80#define BBB_P8_43 72 /* GPIO2_8 */
81#define BBB_P8_44 73 /* GPIO2_9 */
82#define BBB_P8_45 70 /* GPIO2_6 */
83#define BBB_P8_46 71 /* GPIO2_7 */
84
85/* Header P9 of BeagleBone Black */
86#define BBB_P9_11 30 /* GPIO0_30 */
87#define BBB_P9_12 60 /* GPIO1_28 */
88#define BBB_P9_13 31 /* GPIO0_31 */
89#define BBB_P9_14 50 /* GPIO1_18 */
90#define BBB_P9_15 48 /* GPIO1_16 */
91#define BBB_P9_16 51 /* GPIO1_19 */
92#define BBB_P9_17 5 /* GPIO0_5 */
93#define BBB_P9_18 4 /* GPIO0_4 */
94
95#define BBB_P9_19 13 /* GPIO0_13 */
96#define BBB_P9_20 12 /* GPIO0_12 */
97#define BBB_P9_21 3 /* GPIO0_3 */
98#define BBB_P9_22 2 /* GPIO0_2 */
99
100#define BBB_P9_23 49 /* GPIO1_17 */
101#define BBB_P9_24 15 /* GPIO0_15 */
102
103#define BBB_P9_25 117 /* GPIO3_21 */
104
105#define BBB_P9_26 14 /* GPIO1_14 */
106#define BBB_P9_27 115 /* GPIO3_19 */
107
108#define BBB_P9_28 113 /* GPIO3_17 */
109#define BBB_P9_29 111 /* GPIO3_15 */
110
111#define BBB_P9_30 112 /* GPIO3_16 */
112
113#define BBB_P9_31 110 /* GPIO3_14 */
114
115#define BBB_P9_41A 20 /* GPIO0_20 */
116#define BBB_P9_41B 116 /* GPIO3_20 */
117#define BBB_P9_42 7 /* GPIO0_7 */
118
119/* ADC pins on the BeagleBone Black */
120#define BBB_P9_33 4 /* AIN_4 */
121#define BBB_P9_34 7 /* AIN_7 */
122#define BBB_P9_35 6 /* AIN_6 */
123#define BBB_P9_36 5 /* AIN_5 */
124#define BBB_P9_37 2 /* AIN_2 */
125#define BBB_P9_38 3 /* AIN_3 */
126#define BBB_P9_39 0 /* AIN_0 */
127#define BBB_P9_40 1 /* AIN_1 */
128
129#endif /* LIBBSP_ARM_BEAGLE_GPIO_H */