diff options
author | px4dev <px4@purgatory.org> | 2013-04-06 22:46:50 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-04-06 22:46:50 -0700 |
commit | 8eeefcce057012400d94ec855c9103d390b6365b (patch) | |
tree | c649215bbef591ba2b76066bc69810dbd0f4d18c /apps/drivers/drv_gpio.h | |
parent | c355275669378c0d6f2e372afa370446525c66ee (diff) | |
download | px4-firmware-8eeefcce057012400d94ec855c9103d390b6365b.tar.gz px4-firmware-8eeefcce057012400d94ec855c9103d390b6365b.tar.bz2 px4-firmware-8eeefcce057012400d94ec855c9103d390b6365b.zip |
Add GPIO driver access to the power supply control/monitoring GPIOs for FMUv2
Diffstat (limited to 'apps/drivers/drv_gpio.h')
-rw-r--r-- | apps/drivers/drv_gpio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/drivers/drv_gpio.h b/apps/drivers/drv_gpio.h index d21fc5c33..a4c59d218 100644 --- a/apps/drivers/drv_gpio.h +++ b/apps/drivers/drv_gpio.h @@ -80,6 +80,10 @@ # define GPIO_SERVO_5 (1<<4) /**< servo 5 output */ # define GPIO_SERVO_6 (1<<5) /**< servo 6 output */ +# define GPIO_5V_PERIPH_EN (1<<6) /**< PA8 - VDD_5V_PERIPH_EN */ +# define GPIO_5V_HIPOWER_OC (1<<7) /**< PE10 - !VDD_5V_HIPOWER_OC */ +# define GPIO_5V_PERIPH_OC (1<<8) /**< PE15 - !VDD_5V_PERIPH_OC */ + /** * Default GPIO device - other devices may also support this protocol if * they also export GPIO-like things. This is always the GPIOs on the |