mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
MATEKF411SE_PINIO target
LED pad repurposed as 2nd PINIO (USER2)
This commit is contained in:
parent
cada68e4e2
commit
d6e3677455
4 changed files with 11 additions and 0 deletions
|
@ -1 +1,2 @@
|
|||
target_stm32f411xe(MATEKF411SE)
|
||||
target_stm32f411xe(MATEKF411SE_PINIO)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue