Correction for AFF3 MPU CS PIN
This commit is contained in:
parent
78da0fad65
commit
943c7cdb9d
|
@ -20,7 +20,6 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "build_config.h"
|
||||
|
||||
#include "drivers/system.h"
|
||||
|
@ -36,11 +35,11 @@ static const char * const hardwareRevisionNames[] = {
|
|||
|
||||
uint8_t hardwareRevision = UNKNOWN;
|
||||
|
||||
static IO_t HWDetectPin = DEFIO_IO(NONE);
|
||||
static IO_t HWDetectPin = IO_NONE;
|
||||
|
||||
void detectHardwareRevision(void)
|
||||
{
|
||||
HWDetectPin = IOGetByTag(IO_TAG(HW_PIN));
|
||||
HWDetectPin = IOGetByTag(IO_TAG(HW_PIN));
|
||||
IOInit(HWDetectPin, OWNER_SYSTEM, RESOURCE_INPUT);
|
||||
IOConfigGPIO(HWDetectPin, IOCFG_IPU);
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#define TARGET_BOARD_IDENTIFIER "AFF3" // AlienFlight F3.
|
||||
#define USE_HARDWARE_REVISION_DETECTION
|
||||
|
||||
#define HW_PIN PB2
|
||||
|
||||
// LED's V1
|
||||
|
@ -110,9 +109,7 @@
|
|||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_3
|
||||
|
||||
#define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA
|
||||
#define MPU6500_CS_GPIO GPIOA
|
||||
#define MPU6500_CS_PIN GPIO_Pin_15
|
||||
#define MPU6500_CS_PIN PA15
|
||||
#define MPU6500_SPI_INSTANCE SPI3
|
||||
|
||||
#define USE_ADC
|
||||
|
|
Loading…
Reference in New Issue