Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature cut for F411 and F722 boards #7297

Merged
merged 1 commit into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/drivers/io_pca9685.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "build/build_config.h"

#ifdef USE_PWM_DRIVER_PCA9685

#include "common/time.h"
#include "common/maths.h"

Expand Down Expand Up @@ -141,3 +143,5 @@ bool pca9685Initialize(void)

return true;
}

#endif
5 changes: 5 additions & 0 deletions src/main/io/pwmdriver_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include "fc/runtime_config.h"

#include "config/feature.h"
#include "platform.h"

#ifdef USE_PWM_SERVO_DRIVER

#define PWM_DRIVER_IMPLEMENTATION_COUNT 1
#define PWM_DRIVER_MAX_CYCLE 4
Expand Down Expand Up @@ -63,3 +66,5 @@ void pwmDriverSync(void) {
cycle = 0;
}
}

#endif
26 changes: 16 additions & 10 deletions src/main/target/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,13 @@
#define USE_MR_BRAKING_MODE
#define USE_PITOT
#define USE_PITOT_ADC
#define USE_PITOT_VIRTUAL

#define USE_ALPHA_BETA_GAMMA_FILTER
#define USE_DYNAMIC_FILTERS
#define USE_GYRO_KALMAN
#define USE_SMITH_PREDICTOR
#define USE_RATE_DYNAMICS
#define USE_EXTENDED_CMS_MENUS
#define USE_HOTT_TEXTMODE

// NAZA GPS support for F4+ only
#define USE_GPS_PROTO_NAZA
Expand Down Expand Up @@ -126,8 +124,6 @@
#define DASHBOARD_ARMED_BITMAP
#define USE_OLED_UG2864

#define USE_PWM_DRIVER_PCA9685

#define USE_OSD
#define USE_FRSKYOSD
#define USE_DJI_HD_OSD
Expand All @@ -146,14 +142,10 @@
#define USE_GPS_PROTO_MTK

#define USE_TELEMETRY_SIM
#define USE_TELEMETRY_HOTT
#define USE_TELEMETRY_MAVLINK
#define USE_MSP_OVER_TELEMETRY

#define USE_SERIALRX_SRXL2 // Spektrum SRXL2 protocol
#define USE_SERIALRX_SUMD
#define USE_SERIALRX_SUMH
#define USE_SERIALRX_XBUS
#define USE_SERIALRX_JETIEXBUS
#define USE_SERIALRX_MAVLINK
#define USE_TELEMETRY_SRXL
Expand Down Expand Up @@ -193,7 +185,6 @@
#define USE_RX_MSP
//#define USE_MSP_RC_OVERRIDE
#define USE_SERIALRX_CRSF
#define USE_PWM_SERVO_DRIVER
#define USE_SERIAL_PASSTHROUGH
#define NAV_MAX_WAYPOINTS 60
#define USE_RCDEVICE
Expand All @@ -202,7 +193,6 @@
#define USE_VTX_CONTROL
#define USE_VTX_SMARTAUDIO
#define USE_VTX_TRAMP
#define USE_VTX_FFPV

#ifndef STM32F3 //F3 series does not have enoug RAM to support logic conditions
#define USE_PROGRAMMING_FRAMEWORK
Expand All @@ -219,3 +209,19 @@
#define SKIP_TASK_STATISTICS

#endif

//Designed to free space of F722 and F411 MCUs
#if (MCU_FLASH_SIZE > 512)

#define USE_VTX_FFPV
#define USE_PITOT_VIRTUAL
#define USE_PWM_DRIVER_PCA9685
#define USE_PWM_SERVO_DRIVER

#define USE_SERIALRX_SUMD
#define USE_SERIALRX_SUMH
#define USE_SERIALRX_XBUS
#define USE_TELEMETRY_HOTT
#define USE_HOTT_TEXTMODE

#endif
1 change: 0 additions & 1 deletion src/main/target/common_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ extern uint8_t __config_end;
#undef USE_SERIALRX_SUMH
#undef USE_SERIALRX_XBUS
#undef USE_SERIALRX_JETIEXBUS
#undef USE_PWM_SERVO_DRIVER
#endif

#ifndef BEEPER_PWM_FREQUENCY
Expand Down