libpruio  0.0.2
AM33xx-PRU driver for digital input / output and analog input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pruio_pins.bi File Reference

Pre-defined macros to handle the beagle bone header pins. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P8_03   /* 6 ' emmc2 */
 
#define P8_04   /* 7 ' emmc2 */
 
#define P8_05   /* 2 ' emmc2 */
 
#define P8_06   /* 3 ' emmc2 */
 
#define P8_07   /* 36 */
 
#define P8_08   /* 37 */
 
#define P8_09   /* 39 */
 
#define P8_10   /* 38 */
 
#define P8_11   /* 13 */
 
#define P8_12   /* 12 */
 
#define P8_13   /* 9 */
 
#define P8_14   /* 10 */
 
#define P8_15   /* 15 */
 
#define P8_16   /* 14 */
 
#define P8_17   /* 11 */
 
#define P8_18   /* 35 */
 
#define P8_19   /* 8 */
 
#define P8_20   /* 33 ' emmc2 */
 
#define P8_21   /* 32 ' emmc2 */
 
#define P8_22   /* 5 ' emmc2 */
 
#define P8_23   /* 4 ' emmc2 */
 
#define P8_24   /* 1 ' emmc2 */
 
#define P8_25   /* 0 ' emmc2 */
 
#define P8_26   /* 31 */
 
#define P8_27   /* 56 ' hdmi */
 
#define P8_28   /* 58 ' hdmi */
 
#define P8_29   /* 57 ' hdmi */
 
#define P8_30   /* 59 ' hdmi */
 
#define P8_31   /* 54 ' hdmi */
 
#define P8_32   /* 55 ' hdmi */
 
#define P8_33   /* 53 ' hdmi */
 
#define P8_34   /* 51 ' hdmi */
 
#define P8_35   /* 52 ' hdmi */
 
#define P8_36   /* 50 ' hdmi */
 
#define P8_37   /* 48 ' hdmi */
 
#define P8_38   /* 49 ' hdmi */
 
#define P8_39   /* 46 ' hdmi */
 
#define P8_40   /* 47 ' hdmi */
 
#define P8_41   /* 44 ' hdmi */
 
#define P8_42   /* 45 ' hdmi */
 
#define P8_43   /* 42 ' hdmi */
 
#define P8_44   /* 43 ' hdmi */
 
#define P8_45   /* 40 ' hdmi */
 
#define P8_46   /* 41 ' hdmi */
 
#define P9_11   /* 28 */
 
#define P9_12   /* 30 */
 
#define P9_13   /* 29 */
 
#define P9_14   /* 18 */
 
#define P9_15   /* 16 */
 
#define P9_16   /* 19 */
 
#define P9_17   /* 87 */
 
#define P9_18   /* 86 */
 
#define P9_19   /* 95 ' i2c2 */
 
#define P9_20   /* 94 ' i2c2 */
 
#define P9_21   /* 85 */
 
#define P9_22   /* 84 */
 
#define P9_23   /* 17 */
 
#define P9_24   /* 97 */
 
#define P9_25   /* 107 ' mcasp0 */
 
#define P9_26   /* 96 */
 
#define P9_27   /* 105 */
 
#define P9_28   /* 103 ' mcasp0 */
 
#define P9_29   /* 101 ' mcasp0 */
 
#define P9_30   /* 102 */
 
#define P9_31   /* 100 ' mcasp0 */
 
#define P9_41   /* 109 */
 
#define P9_42   /* 89 */
 

Variables

static uint8 P8_Pins [...]
 CPU ball numbers for all pins on header P8. More...
 
static uint8 P9_Pins [...]
 CPU ball numbers for all digital pins on header P9. More...
 
static uint8 EMMC2_Pins [...]
 CPU ball numbers for emmc2 pin group on header P8 (locked on BBB) More...
 
static uint8 HDMI_Pins [...]
 CPU ball numbers for hdmi pin group on header P8 (locked on BBB) More...
 
static uint8 I2C1_Pins [...]
 CPU ball numbers for i2c1 pin group on header P9 (locked) More...
 
static uint8 I2C2_Pins [...]
 CPU ball numbers for i2c2 pin group on header P9 (locked) More...
 
static uint8 MCASP0_Pins [...]
 CPU ball numbers for mcasp0 pin group on header P9 (locked) More...
 

Detailed Description

Pre-defined macros to handle the beagle bone header pins.

This file contains macros and arrays to easy handle the header pins and pin groups of the beaglebone hardware. Instead of looking up the CPU pin number in lists, you can use a macro named after the header and pin number (ie pin 3 of header P8 is named P8_03).

Also included are pre-defined arrays for the pin groups of the beaglebone black hardware. These contain all pins that belong to a device like the EMMC2 or HDMI and can be used ie. to lock or unlock these pins as one group.

Definition in file pruio_pins.bi.

Macro Definition Documentation

#define P8_03   /* 6 ' emmc2 */

Definition at line 16 of file pruio_pins.bi.

#define P8_04   /* 7 ' emmc2 */

Definition at line 17 of file pruio_pins.bi.

#define P8_05   /* 2 ' emmc2 */

Definition at line 18 of file pruio_pins.bi.

#define P8_06   /* 3 ' emmc2 */

Definition at line 19 of file pruio_pins.bi.

#define P8_07   /* 36 */

Definition at line 20 of file pruio_pins.bi.

#define P8_08   /* 37 */

Definition at line 21 of file pruio_pins.bi.

#define P8_09   /* 39 */

Definition at line 22 of file pruio_pins.bi.

#define P8_10   /* 38 */

Definition at line 23 of file pruio_pins.bi.

#define P8_11   /* 13 */

Definition at line 24 of file pruio_pins.bi.

#define P8_12   /* 12 */

Definition at line 25 of file pruio_pins.bi.

#define P8_13   /* 9 */

Definition at line 26 of file pruio_pins.bi.

#define P8_14   /* 10 */

Definition at line 27 of file pruio_pins.bi.

#define P8_15   /* 15 */

Definition at line 28 of file pruio_pins.bi.

#define P8_16   /* 14 */

Definition at line 29 of file pruio_pins.bi.

#define P8_17   /* 11 */

Definition at line 30 of file pruio_pins.bi.

#define P8_18   /* 35 */

Definition at line 31 of file pruio_pins.bi.

#define P8_19   /* 8 */

Definition at line 32 of file pruio_pins.bi.

#define P8_20   /* 33 ' emmc2 */

Definition at line 33 of file pruio_pins.bi.

#define P8_21   /* 32 ' emmc2 */

Definition at line 34 of file pruio_pins.bi.

#define P8_22   /* 5 ' emmc2 */

Definition at line 35 of file pruio_pins.bi.

#define P8_23   /* 4 ' emmc2 */

Definition at line 36 of file pruio_pins.bi.

#define P8_24   /* 1 ' emmc2 */

Definition at line 37 of file pruio_pins.bi.

#define P8_25   /* 0 ' emmc2 */

Definition at line 38 of file pruio_pins.bi.

#define P8_26   /* 31 */

Definition at line 39 of file pruio_pins.bi.

#define P8_27   /* 56 ' hdmi */

Definition at line 40 of file pruio_pins.bi.

#define P8_28   /* 58 ' hdmi */

Definition at line 41 of file pruio_pins.bi.

#define P8_29   /* 57 ' hdmi */

Definition at line 42 of file pruio_pins.bi.

#define P8_30   /* 59 ' hdmi */

Definition at line 43 of file pruio_pins.bi.

#define P8_31   /* 54 ' hdmi */

Definition at line 44 of file pruio_pins.bi.

#define P8_32   /* 55 ' hdmi */

Definition at line 45 of file pruio_pins.bi.

#define P8_33   /* 53 ' hdmi */

Definition at line 46 of file pruio_pins.bi.

#define P8_34   /* 51 ' hdmi */

Definition at line 47 of file pruio_pins.bi.

#define P8_35   /* 52 ' hdmi */

Definition at line 48 of file pruio_pins.bi.

#define P8_36   /* 50 ' hdmi */

Definition at line 49 of file pruio_pins.bi.

#define P8_37   /* 48 ' hdmi */

Definition at line 50 of file pruio_pins.bi.

#define P8_38   /* 49 ' hdmi */

Definition at line 51 of file pruio_pins.bi.

#define P8_39   /* 46 ' hdmi */

Definition at line 52 of file pruio_pins.bi.

#define P8_40   /* 47 ' hdmi */

Definition at line 53 of file pruio_pins.bi.

#define P8_41   /* 44 ' hdmi */

Definition at line 54 of file pruio_pins.bi.

#define P8_42   /* 45 ' hdmi */

Definition at line 55 of file pruio_pins.bi.

#define P8_43   /* 42 ' hdmi */

Definition at line 56 of file pruio_pins.bi.

#define P8_44   /* 43 ' hdmi */

Definition at line 57 of file pruio_pins.bi.

#define P8_45   /* 40 ' hdmi */

Definition at line 58 of file pruio_pins.bi.

#define P8_46   /* 41 ' hdmi */

Definition at line 59 of file pruio_pins.bi.

#define P9_11   /* 28 */

Definition at line 61 of file pruio_pins.bi.

#define P9_12   /* 30 */

Definition at line 62 of file pruio_pins.bi.

#define P9_13   /* 29 */

Definition at line 63 of file pruio_pins.bi.

#define P9_14   /* 18 */

Definition at line 64 of file pruio_pins.bi.

#define P9_15   /* 16 */

Definition at line 65 of file pruio_pins.bi.

#define P9_16   /* 19 */

Definition at line 66 of file pruio_pins.bi.

#define P9_17   /* 87 */

Definition at line 67 of file pruio_pins.bi.

#define P9_18   /* 86 */

Definition at line 68 of file pruio_pins.bi.

#define P9_19   /* 95 ' i2c2 */

Definition at line 69 of file pruio_pins.bi.

#define P9_20   /* 94 ' i2c2 */

Definition at line 70 of file pruio_pins.bi.

#define P9_21   /* 85 */

Definition at line 71 of file pruio_pins.bi.

#define P9_22   /* 84 */

Definition at line 72 of file pruio_pins.bi.

#define P9_23   /* 17 */

Definition at line 73 of file pruio_pins.bi.

#define P9_24   /* 97 */

Definition at line 74 of file pruio_pins.bi.

#define P9_25   /* 107 ' mcasp0 */

Definition at line 75 of file pruio_pins.bi.

#define P9_26   /* 96 */

Definition at line 76 of file pruio_pins.bi.

#define P9_27   /* 105 */

Definition at line 77 of file pruio_pins.bi.

#define P9_28   /* 103 ' mcasp0 */

Definition at line 78 of file pruio_pins.bi.

#define P9_29   /* 101 ' mcasp0 */

Definition at line 79 of file pruio_pins.bi.

#define P9_30   /* 102 */

Definition at line 80 of file pruio_pins.bi.

#define P9_31   /* 100 ' mcasp0 */

Definition at line 81 of file pruio_pins.bi.

#define P9_41   /* 109 */

Definition at line 82 of file pruio_pins.bi.

#define P9_42   /* 89 */

Definition at line 83 of file pruio_pins.bi.

Variable Documentation

uint8 P8_Pins[...]
static

CPU ball numbers for all pins on header P8.

Definition at line 86 of file pruio_pins.bi.

uint8 P9_Pins[...]
static
Initial value:
= {
28
, 30
, 29
, 18
, 16
, 19
, 87
, 86
, 95
, 94
, 85
, 84
, 17
, 97
, 107
, 96
, 105
, 103
, 101
, 102
, 100
, 109
, 89
}

CPU ball numbers for all digital pins on header P9.

Definition at line 134 of file pruio_pins.bi.

uint8 EMMC2_Pins[...]
static
Initial value:
= {
6
, 7
, 2
, 3
, 33
, 32
, 5
, 4
, 1
, 0
}

CPU ball numbers for emmc2 pin group on header P8 (locked on BBB)

Definition at line 161 of file pruio_pins.bi.

uint8 HDMI_Pins[...]
static
Initial value:
= {
56
, 58
, 57
, 59
, 54
, 55
, 53
, 51
, 52
, 50
, 48
, 49
, 46
, 47
, 44
, 45
, 42
, 43
, 40
, 41
}

CPU ball numbers for hdmi pin group on header P8 (locked on BBB)

Definition at line 175 of file pruio_pins.bi.

uint8 I2C1_Pins[...]
static
Initial value:
= {
87
, 86
}

CPU ball numbers for i2c1 pin group on header P9 (locked)

Definition at line 199 of file pruio_pins.bi.

uint8 I2C2_Pins[...]
static
Initial value:
= {
95
, 94
}

CPU ball numbers for i2c2 pin group on header P9 (locked)

Definition at line 205 of file pruio_pins.bi.

uint8 MCASP0_Pins[...]
static
Initial value:
= {
107
, 103
, 101
, 100
}

CPU ball numbers for mcasp0 pin group on header P9 (locked)

Definition at line 211 of file pruio_pins.bi.