1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Use Naze hardware revision when initialising bmp085. Cleanup bmp085

GPIO configuration for all targets.
This commit is contained in:
Dominic Clifton 2014-10-16 00:13:09 +01:00
parent 79917da85a
commit 2ed09b0b2f
9 changed files with 100 additions and 77 deletions

View file

@ -20,6 +20,8 @@
#include <platform.h>
#include "build_config.h"
#include "gpio.h"
#include "bus_spi.h"
@ -133,6 +135,10 @@ void initSpi2(void)
bool spiInit(SPI_TypeDef *instance)
{
#if (!(defined(USE_SPI_DEVICE_1) && defined(USE_SPI_DEVICE_2)))
UNUSED(instance);
#endif
#ifdef USE_SPI_DEVICE_1
if (instance == SPI1) {
initSpi1();