5 #define SYSFS_GPIO_DIR "/sys/class/gpio" 7 #define GPIO0_BASE 0x44E07000 8 #define GPIO1_BASE 0x4804C000 9 #define GPIO2_BASE 0x481AC000 10 #define GPIO3_BASE 0x481AE000 12 #define GPIO_SIZE 0x00000FFF 17 #define GPIO_OUT 0x14f 22 #define SAFETY_SWITCH 116 26 #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \ 27 CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLEBOARD || \ 28 CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI || \ 29 CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE || \ 30 CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_POCKET 31 #define LINUX_GPIO_NUM_BANKS 4 34 #define LINUX_GPIO_NUM_BANKS 0 100 #define BBB_P9_25 117 102 #define BBB_P9_27 115 103 #define BBB_P9_28 113 104 #define BBB_P9_29 111 105 #define BBB_P9_30 112 106 #define BBB_P9_31 110 116 volatile uint32_t *
oe;
117 volatile uint32_t *
in;
int8_t analogPinToDigitalPin(uint8_t pin)
void pinMode(uint8_t pin, uint8_t output)
#define LINUX_GPIO_NUM_BANKS
uint8_t read(uint8_t pin)
bool attach_interrupt(uint8_t interrupt_num, AP_HAL::Proc p, uint8_t mode)
AP_HAL::DigitalSource * channel(uint16_t n)
void write(uint8_t pin, uint8_t value)
struct Linux::GPIO_BBB::GPIO gpio_bank[LINUX_GPIO_NUM_BANKS]