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

Add MATEKF411SE_PINIO target #6166

Merged
merged 2 commits into from
Mar 31, 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
1 change: 1 addition & 0 deletions src/main/target/MATEKF411SE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target_stm32f411xe(MATEKF411SE)
target_stm32f411xe(MATEKF411SE_PINIO)
target_stm32f411xe(MATEKF411SE_FD_SFTSRL1)
3 changes: 3 additions & 0 deletions src/main/target/MATEKF411SE/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@
void targetConfiguration(void)
{
pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1;
#ifdef MATEKF411SE_PINIO
pinioBoxConfigMutable()->permanentId[1] = BOX_PERMANENT_ID_USER2;
#endif
}
2 changes: 2 additions & 0 deletions src/main/target/MATEKF411SE/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const timerHardware_t timerHardware[] = {
DEF_TIM(TIM5, CH3, PA2, TIM_USE_ANY, 0, 0), //TX2 pad -softserial_tx2

DEF_TIM(TIM9, CH2, PA3, TIM_USE_PPM, 0, 0), //RX2 Pad -PPM
#ifndef MATEKF411SE_PINIO
DEF_TIM(TIM2, CH3, PB10, TIM_USE_ANY, 0, 0), // softserial_rx1 - LED 2812 D(1,1,3)
#endif

};

Expand Down
5 changes: 4 additions & 1 deletion src/main/target/MATEKF411SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
#define AIRSPEED_ADC_CHANNEL ADC_CHN_4

// *************** LED2812 ************************
#ifndef MATEKF411SE_FD_SFTSRL1
#if !defined(MATEKF411SE_PINIO) && !defined(MATEKF411SE_FD_SFTSRL1)
#define USE_LED_STRIP
#define WS2811_PIN PB10
#endif
Expand All @@ -144,6 +144,9 @@
#define USE_PINIO
#define USE_PINIOBOX
#define PINIO1_PIN PA13 // Camera switcher
#ifdef MATEKF411SE_PINIO
#define PINIO2_PIN PB10 // External PINIO (LED pad)
#endif

// *************** OTHERS *************************
#define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL )
Expand Down