RTEMS 7.0-rc1
Loading...
Searching...
No Matches
beagleboneblack.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
19#ifndef LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
20#define LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
21
22/* In general GPIOs of BeagleBone Black/White can be addressed
23 * using two 46-pin dual-row expansion connectors P9 and P8,
24 * which are also known as Expansion A and Expansion B Connectors,
25 * respectively.
26 *
27 * Each Expansion Connector consists of 23 pins. So 2x23 pins would
28 * be available. It has 4 GPIO Banks each consists of 32 pins each.
29 * Toatal number of pins are 128 (32x4).
30 *
31 * So for mapping between generalized pin name and the unique pin
32 * numbers in this header file Macros are declared.
33 */
34
35/* USER LEDs of BeagleBone Black */
36#define BBB_LED_USR0 53 /* USR LED0 */
37#define BBB_LED_USR1 54 /* USR LED1 */
38#define BBB_LED_USR2 55 /* USR LED2 */
39#define BBB_LED_USR3 56 /* USR LED3 */
40
41/* Header P8 of BeagleBone Black */
42#define BBB_P8_7 66 /* GPIO2_2 */
43#define BBB_P8_8 67 /* GPIO2_3 */
44#define BBB_P8_9 69 /* GPIO2_5 */
45#define BBB_P8_10 68 /* GPIO2_4 */
46#define BBB_P8_11 45 /* GPIO1_13 */
47#define BBB_P8_12 44 /* GPIO1_12 */
48#define BBB_P8_13 23 /* GPIO0_23 */
49#define BBB_P8_14 26 /* GPIO0_26 */
50#define BBB_P8_15 47 /* GPIO1_15 */
51#define BBB_P8_16 46 /* GPIO1_14 */
52#define BBB_P8_17 27 /* GPIO0_27 */
53#define BBB_P8_18 65 /* GPIO2_1 */
54#define BBB_P8_19 22 /* GPIO0_22 */
55#define BBB_P8_26 61 /* GPIO1_29 */
56
57/* Header P9 of BeagleBone Black */
58#define BBB_P9_11 30 /* GPIO0_30 */
59#define BBB_P9_12 60 /* GPIO1_28 */
60#define BBB_P9_13 31 /* GPIO0_31 */
61#define BBB_P9_14 50 /* GPIO1_18 */
62#define BBB_P9_15 48 /* GPIO1_16 */
63#define BBB_P9_16 51 /* GPIO1_19 */
64#define BBB_P9_17 5 /* GPIO0_5 */
65#define BBB_P9_18 4 /* GPIO0_4 */
66#define BBB_P9_23 49 /* GPIO1_17 */
67#define BBB_P9_24 15 /* GPIO0_15 */
68#define BBB_P9_26 14 /* GPIO1_14 */
69#define BBB_P9_27 115/* GPIO3_19 */
70#define BBB_P9_30 112/* GPIO3_16 */
71#define BBB_P9_41 20 /* GPIO0_20 */
72#define BBB_P9_42 7 /* GPIO0_7 */
73
74#endif /* LIBBSP_ARM_BEAGLE_GPIO_H */