Skip to content
Snippets Groups Projects
Commit 51f85858 authored by José Roberto de Souza's avatar José Roberto de Souza Committed by Lorenz Meier
Browse files

aerofc: Power on sensors

MPU6500, MS5611 and HMC5883 only power on when GPIO_SENSORS_POWER is
set.
parent 7ced5a1b
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,8 @@ __END_DECLS
__EXPORT void stm32_boardinitialize(void)
{
/* turn sensors on */
stm32_configgpio(GPIO_SENSORS_POWER);
/* configure SPI interfaces */
stm32_spiinitialize();
......
......@@ -71,6 +71,8 @@
#define GPIO_BLUE_LED GPIO_LED1
#define GPIO_RED_LED GPIO_LED2
#define GPIO_SENSORS_POWER (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN13)
/*
* I2C busses
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment