Skip to content

Commit

Permalink
Merge pull request #6353 from Scavanger/MATEK_F411_SE_SOFTSERIAL1_FUL…
Browse files Browse the repository at this point in the history
…L_DUPLEX

[Target] Matek F411WSE: Softserial1 Full Duplex
  • Loading branch information
DzikuVx committed Jan 31, 2021
2 parents e00c7b4 + 565f41c commit e57d496
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/target/MATEKF411SE/CMakeLists.txt
@@ -1 +1,2 @@
target_stm32f411xe(MATEKF411SE)
target_stm32f411xe(MATEKF411SE_FD_SFTSRL1)
2 changes: 1 addition & 1 deletion src/main/target/MATEKF411SE/target.c
Expand Up @@ -35,7 +35,7 @@ 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
DEF_TIM(TIM2, CH3, PB10, TIM_USE_LED, 0, 0), //LED 2812 D(1,1,3)
DEF_TIM(TIM2, CH3, PB10, TIM_USE_ANY, 0, 0), // softserial_rx1 - LED 2812 D(1,1,3)

};

Expand Down
6 changes: 6 additions & 0 deletions src/main/target/MATEKF411SE/target.h
Expand Up @@ -70,7 +70,11 @@

#define USE_SOFTSERIAL1
#define SOFTSERIAL_1_TX_PIN PB9 // ST1 pad
#ifdef MATEKF411SE_FD_SFTSRL1
#define SOFTSERIAL_1_RX_PIN PB10 // LED pad
#else
#define SOFTSERIAL_1_RX_PIN PB9
#endif

#define USE_SOFTSERIAL2
#define SOFTSERIAL_2_TX_PIN PA2 // TX2 pad
Expand Down Expand Up @@ -131,8 +135,10 @@
#define AIRSPEED_ADC_CHANNEL ADC_CHN_4

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

// *************** PINIO ***************************
#define USE_PINIO
Expand Down

0 comments on commit e57d496

Please sign in to comment.