diff --git a/src/main/target/ALIENFLIGHTF3/hardware_revision.c b/src/main/target/ALIENFLIGHTF3/hardware_revision.c index 7a7aabfba..16a9de5b2 100644 --- a/src/main/target/ALIENFLIGHTF3/hardware_revision.c +++ b/src/main/target/ALIENFLIGHTF3/hardware_revision.c @@ -20,7 +20,6 @@ #include #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); diff --git a/src/main/target/ALIENFLIGHTF3/target.h b/src/main/target/ALIENFLIGHTF3/target.h index f6de770af..68b0807e5 100644 --- a/src/main/target/ALIENFLIGHTF3/target.h +++ b/src/main/target/ALIENFLIGHTF3/target.h @@ -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