mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
STM32F4: Adjusted for compatibility with @martinbudden common.h PR
This commit is contained in:
parent
aa4c078593
commit
47ce9bb799
9 changed files with 16 additions and 14 deletions
|
@ -17,14 +17,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "platform/common.h"
|
||||
|
||||
#if defined(STM32F40_41xxx) || defined (STM32F411xE)
|
||||
#include "stm32f4xx_conf.h"
|
||||
#include "stm32f4xx_rcc.h"
|
||||
#include "stm32f4xx_gpio.h"
|
||||
#include "core_cm4.h"
|
||||
#include "common_stm32f4xx.h"
|
||||
#include "target/common_stm32f4xx.h"
|
||||
|
||||
// Chip Unique ID on F405
|
||||
#define U_ID_0 (*(uint32_t*)0x1fff7a10)
|
||||
|
@ -62,5 +60,6 @@
|
|||
#define STM32F1
|
||||
#endif // STM32F10X
|
||||
|
||||
#include "target/common.h"
|
||||
#include "target.h"
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "AFNA" // AFroNAze - NAZE might be considered misleading on Naze clones like the flip32.
|
||||
#define USE_HARDWARE_REVISION_DETECTION
|
||||
|
||||
/* remove some options from common.h due to flash size */
|
||||
#undef GPS
|
||||
|
||||
#define BOARD_HAS_VOLTAGE_DIVIDER
|
||||
|
||||
#define LED0 PB3 // PB3 (LED)
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
//#define USE_SERVOS
|
||||
#define USE_SERVOS
|
||||
#define USE_CLI
|
||||
#define SERIAL_RX
|
||||
#define BLACKBOX
|
||||
|
||||
#if (FLASH_SIZE > 64)
|
||||
//#define GPS
|
||||
//#define GPS_PROTO_NMEA
|
||||
//#define GPS_PROTO_UBLOX
|
||||
//#define GPS_PROTO_I2C_NAV
|
||||
//#define GPS_PROTO_NAZA
|
||||
#define GPS
|
||||
#define GPS_PROTO_NMEA
|
||||
#define GPS_PROTO_UBLOX
|
||||
#define GPS_PROTO_I2C_NAV
|
||||
#define GPS_PROTO_NAZA
|
||||
|
||||
#define TELEMETRY
|
||||
#define TELEMETRY_FRSKY
|
||||
|
@ -37,8 +37,8 @@
|
|||
#endif
|
||||
|
||||
#if (FLASH_SIZE > 128)
|
||||
//#define DISPLAY
|
||||
//#define DISPLAY_ARMED_BITMAP
|
||||
#define DISPLAY
|
||||
#define DISPLAY_ARMED_BITMAP
|
||||
#else
|
||||
#define SKIP_CLI_COMMAND_HELP
|
||||
#define SKIP_RX_MSP
|
Loading…
Add table
Add a link
Reference in a new issue