Skip to content

Commit

Permalink
FLYWOOF405S_AIO: mod for wing usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 3, 2024
1 parent 6ecbb75 commit 891666a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
17 changes: 8 additions & 9 deletions src/main/target/FLYWOOF405S_AIO/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
#include "drivers/timer.h"

timerHardware_t timerHardware[] = {
DEF_TIM(TIM2, CH4, PA3, TIM_USE_OUTPUT_AUTO, 0, 1), // S1
DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S2
DEF_TIM(TIM2, CH3, PA2, TIM_USE_OUTPUT_AUTO, 0, 0), // S3
DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S4
DEF_TIM(TIM3, CH2, PB5, TIM_USE_OUTPUT_AUTO, 0, 0), // S5
DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // S6
DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0), // S7
DEF_TIM(TIM2, CH4, PA3, TIM_USE_OUTPUT_AUTO, 0, 1), // S1
DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S2
DEF_TIM(TIM2, CH3, PA2, TIM_USE_OUTPUT_AUTO, 0, 0), // S3
DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S4

DEF_TIM(TIM1, CH2, PA9, TIM_USE_LED, 0, 0), //2812LED D(1,5,3)
DEF_TIM(TIM10, CH1, PB8, TIM_USE_PPM, 0, 0), // PPM
DEF_TIM(TIM5, CH1, PA2, TIM_USE_OUTPUT_AUTO, 0, 0), // S3
DEF_TIM(TIM5, CH2, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S4

DEF_TIM(TIM1, CH2, PA9, TIM_USE_LED, 0, 0), // 2812LED D(1,5,3)
};

const int timerHardwareCount = sizeof(timerHardware) / sizeof(timerHardware[0]);
8 changes: 4 additions & 4 deletions src/main/target/FLYWOOF405S_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
#define UART3_TX_PIN PB10
#define UART3_RX_PIN PB11

#define USE_UART4
#define UART4_TX_PIN PA0
#define UART4_RX_PIN PA1
// #define USE_UART4
// #define UART4_TX_PIN PA0
// #define UART4_RX_PIN PA1

#define USE_UART5
#define UART5_TX_PIN NONE
Expand All @@ -135,7 +135,7 @@
#define UART6_TX_PIN PC6
#define UART6_RX_PIN PC7

#define SERIAL_PORT_COUNT 7
#define SERIAL_PORT_COUNT 6

#define DEFAULT_RX_TYPE RX_TYPE_SERIAL
#define SERIALRX_PROVIDER SERIALRX_SBUS
Expand Down

0 comments on commit 891666a

Please sign in to comment.