mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fisrt commit for xracerf4 - not tested personally
This commit is contained in:
parent
ceb6f70aa9
commit
a24ed5915c
4 changed files with 10 additions and 4 deletions
3
src/main/target/OMNIBUSF4/XRACERF4.mk
Normal file
3
src/main/target/OMNIBUSF4/XRACERF4.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
#XRACERF4
|
||||
|
||||
|
|
@ -32,4 +32,4 @@ void targetConfiguration(void)
|
|||
max7456ConfigMutable()->clockConfig = MAX7456_CLOCK_CONFIG_FULL;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
|
@ -23,6 +23,8 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "LUX4"
|
||||
#elif defined(DYSF4PRO)
|
||||
#define TARGET_BOARD_IDENTIFIER "DYS4"
|
||||
#elif defined(XRACERF4)
|
||||
#define TARGET_BOARD_IDENTIFIER "XRF4"
|
||||
#else
|
||||
#define TARGET_BOARD_IDENTIFIER "OBF4"
|
||||
#define OMNIBUSF4BASE // For config.c
|
||||
|
@ -32,6 +34,8 @@
|
|||
#define USBD_PRODUCT_STRING "LuxF4osd"
|
||||
#elif defined(DYSF4PRO)
|
||||
#define USBD_PRODUCT_STRING "DysF4Pro"
|
||||
#elif defined(XRACERF4)
|
||||
#define USBD_PRODUCT_STRING "XRACERF4"
|
||||
#else
|
||||
#define USBD_PRODUCT_STRING "OmnibusF4"
|
||||
#endif
|
||||
|
@ -68,7 +72,7 @@
|
|||
#define MPU_INT_EXTI PC4
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
|
||||
#if defined(OMNIBUSF4SD)
|
||||
#if defined(OMNIBUSF4SD) || defined(XRACERF4)
|
||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||
#else
|
||||
|
|
|
@ -8,5 +8,4 @@ TARGET_SRC = \
|
|||
drivers/barometer/barometer_bmp280.c \
|
||||
drivers/barometer/barometer_ms5611.c \
|
||||
drivers/compass/compass_hmc5883l.c \
|
||||
drivers/max7456.c
|
||||
|
||||
drivers/max7456.c
|
Loading…
Add table
Add a link
Reference in a new issue