mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Modify some of ELINF405
Modify softserial port. Define camera control pin. Change esc serial port.
This commit is contained in:
parent
687d066219
commit
c635e15af0
4 changed files with 28 additions and 17 deletions
|
@ -6,7 +6,7 @@
|
|||
* IMU
|
||||
- ICM-20602
|
||||
* Motor Outputs
|
||||
- 4~6 outputs
|
||||
- 4 outputs
|
||||
* OSD
|
||||
* VCP
|
||||
* Hardware UARTS :
|
||||
|
@ -14,6 +14,8 @@
|
|||
- UART3 - Inverted Smart Port,
|
||||
- UART4 - General use
|
||||
- UART6 - General use
|
||||
- Soft Serial 1 - Smart Port
|
||||
- Soft Serial 2 - ESC Telemetry
|
||||
* Black box
|
||||
- SPI 16MB
|
||||
* LED Strip
|
||||
|
|
BIN
docs/boards/images/ElinF405_pinout.jpg
Normal file → Executable file
BIN
docs/boards/images/ElinF405_pinout.jpg
Normal file → Executable file
Binary file not shown.
Before Width: | Height: | Size: 240 KiB After Width: | Height: | Size: 287 KiB |
|
@ -34,9 +34,10 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
|
|||
DEF_TIM(TIM8, CH3N, PB1, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM2, CH4, PA3, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM2, CH3, PA2, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM1, CH1, PA8, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM3, CH4, PC9, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0),
|
||||
DEF_TIM(TIM1, CH1, PA8, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM3, CH4, PC9, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM4, CH1, PB6, TIM_USE_PPM | TIM_USE_LED, 0, 0),
|
||||
DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAMERA_CONTROL, 0, 0),
|
||||
#else
|
||||
DEF_TIM(TIM12, CH1, PB14, TIM_USE_PWM | TIM_USE_PPM, 0, 0), // PPM (5th pin on FlexiIO port)
|
||||
DEF_TIM(TIM12, CH2, PB15, TIM_USE_PWM, 0, 0), // S2_IN
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
#if defined(ELINF405)
|
||||
|
||||
#define USE_OSD
|
||||
#define DEFAULT_FEATURES FEATURE_OSD
|
||||
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_SOFTSERIAL)
|
||||
#define USE_MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_CS_PIN PC8
|
||||
|
@ -242,6 +242,9 @@
|
|||
#define DEFAULT_MIXER MIXER_QUADX
|
||||
#define ENABLE_DSHOT_DMAR true
|
||||
#define USE_TARGET_CONFIG
|
||||
#define SOFTSERIAL1_TX_PIN PC9
|
||||
#define SOFTSERIAL2_RX_PIN PA8
|
||||
|
||||
#else
|
||||
|
||||
#define PINIO1_PIN PC8 // DTR pin
|
||||
|
@ -259,7 +262,7 @@
|
|||
|
||||
#define USE_ESCSERIAL
|
||||
#if defined(ELINF405)
|
||||
#define ESCSERIAL_TIMER_TX_PIN PC6
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB6
|
||||
#else
|
||||
#define ESCSERIAL_TIMER_TX_PIN PB14 // (HARDARE=0,PPM)
|
||||
#endif
|
||||
|
@ -315,6 +318,11 @@
|
|||
#define VBAT_ADC_PIN PC3
|
||||
#endif
|
||||
|
||||
#if defined(ELINF405)
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#endif
|
||||
|
||||
#if defined(AIRBOTF4SD)
|
||||
#define RSSI_ADC_PIN PA0
|
||||
#endif
|
||||
|
@ -340,7 +348,7 @@
|
|||
#define USABLE_TIMER_CHANNEL_COUNT 13
|
||||
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(8) | TIM_N(12) )
|
||||
#elif defined(ELINF405)
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 8
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 9
|
||||
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(11) )
|
||||
#else
|
||||
#define USABLE_TIMER_CHANNEL_COUNT 12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue