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:
parent
79917da85a
commit
2ed09b0b2f
9 changed files with 100 additions and 77 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue