Skip to content

Commit

Permalink
MATEKF411SE_PINIO target
Browse files Browse the repository at this point in the history
LED pad repurposed as 2nd PINIO (USER2)
  • Loading branch information
nmaggioni committed Dec 5, 2020
1 parent cada68e commit d6e3677
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/target/MATEKF411SE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target_stm32f411xe(MATEKF411SE)
target_stm32f411xe(MATEKF411SE_PINIO)
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_LED, 0, 0), //LED 2812 D(1,1,3)
#endif

};

Expand Down
5 changes: 5 additions & 0 deletions src/main/target/MATEKF411SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,18 @@
#define AIRSPEED_ADC_CHANNEL ADC_CHN_4

// *************** LED2812 ************************
#ifndef MATEKF411SE_PINIO
#define USE_LED_STRIP
#define WS2811_PIN PB10
#endif

// *************** PINIO ***************************
#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

0 comments on commit d6e3677

Please sign in to comment.