Skip to content

Commit

Permalink
Update target.h
Browse files Browse the repository at this point in the history
initial add of CC3D target
  • Loading branch information
pitts-mo authored May 23, 2021
1 parent 1d2e830 commit 1986b8b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
#define USART_INPUT USART2 // UART2 RX=PA3 TX=PA2
#define OUTPUT_PIN_MAP PA_15, PB_3, PB_10, PB_11, PA_6, PA_7, PB_0, PB_1 // TIM2 CH1-4, TIM3CH1-4

#elif defined(NEW_PLATFORM)
#elif defined(TARGET_CC3D)
#define DPIN_LED PB_3
#define LED_INVERTED 1
#define APIN_VBAT PA_14
#define USART_INPUT USART3 // UART3 RX=PA11 TX=PA10 -CC3D Flexi port
#define OUTPUT_PIN_MAP PB_9, PB_8, PB_7, PA_8, PB_4, PA_2, PB_6, PB_5 // timers: TIM4_CH4,TIM4_CH3,TIM4_CH2,TIM1_CH1,IM3_CH1,TIM2_CH3,TIM4_CH1,TIM3_CH2

#endif

Expand All @@ -19,4 +24,4 @@
// Resistor divider used on VBAT input, R1+R2 must be less than 3178
#define VBAT_R1 820
#define VBAT_R2 120
#endif
#endif

0 comments on commit 1986b8b

Please sign in to comment.