Skip to content

Commit

Permalink
[target] TMOTORF7 update; add ICM42688P and BMI270
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Nov 2, 2023
1 parent 291c5d0 commit ec6c927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/target/TMTR_TMOTORF7/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
DEF_TIM(TIM3, CH4, PB1, TIM_USE_MOTOR, 0, 0), // motor 4
DEF_TIM(TIM4, CH1, PB6, TIM_USE_MOTOR, 0, 0), // motor 5
DEF_TIM(TIM4, CH3, PB8, TIM_USE_MOTOR, 0, 0), // motor 6
// DEF_TIM(TIM4, CH2, PB7, TIM_USE_MOTOR, 0, 0), // motor 7
// DEF_TIM(TIM8, CH4, PC9, TIM_USE_MOTOR, 0, 0), // motor 8
DEF_TIM(TIM4, CH2, PB7, TIM_USE_MOTOR, 0, 0), // motor 7
DEF_TIM(TIM8, CH4, PC9, TIM_USE_MOTOR, 0, 0), // motor 8

DEF_TIM(TIM2, CH1, PA15, TIM_USE_PPM, 0, 0), // ppm
DEF_TIM(TIM11, CH1, PB9, TIM_USE_ANY, 0, 0), // cam ctrl
Expand Down
5 changes: 2 additions & 3 deletions src/main/target/TMTR_TMOTORF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@

#define USE_ESCSERIAL
#define ESCSERIAL_TIMER_TX_PIN PA15
//#define RX_PPM_PIN PA15 //??

#define USE_SPI
#define USE_SPI_DEVICE_1
Expand Down Expand Up @@ -165,7 +164,7 @@

//#define SERIALRX_PROVIDER SERIALRX_SBUS
#define SERIALRX_UART SERIAL_PORT_UART5
//#define SBUS_TELEMETRY_UART SERIAL_PORT_USART1
#define SBUS_TELEMETRY_UART SERIAL_PORT_USART1 // soft UART??

#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_AIRMODE | FEATURE_RX_SERIAL)
Expand All @@ -175,5 +174,5 @@
#define TARGET_IO_PORTC ( 0xffff )
#define TARGET_IO_PORTD ( 0x0004 )

#define USABLE_TIMER_CHANNEL_COUNT 9
#define USABLE_TIMER_CHANNEL_COUNT 11
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(11) )

0 comments on commit ec6c927

Please sign in to comment.