mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
DEBUG pad (PB3) is the only pin capable of half-duplex soft serial
This commit is contained in:
parent
06326c8b69
commit
bc070558b1
2 changed files with 8 additions and 3 deletions
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* - Support HEXA-Dshot
|
* - Support HEXA-Dshot
|
||||||
* - S5_OUT, S6_OUT and DEBUG can be assigned to any combination of LED, software serial and servos
|
* - S5_OUT, S6_OUT are N-channels, which are only capable of outputs. (E.g., motors, servos, LED strip, PWM outputs.)
|
||||||
|
* - Input is only available on DEBUG pad. See comment on SOFTSERIAL1 in target.h for details.
|
||||||
*/
|
*/
|
||||||
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
|
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
|
||||||
DEF_TIM(TIM3, CH2, PC7, TIM_USE_PPM, 0, 0 ), // PPM IN
|
DEF_TIM(TIM3, CH2, PC7, TIM_USE_PPM, 0, 0 ), // PPM IN
|
||||||
|
|
|
@ -119,8 +119,12 @@
|
||||||
#define UART4_TX_PIN NONE // PA0
|
#define UART4_TX_PIN NONE // PA0
|
||||||
|
|
||||||
#define USE_SOFTSERIAL1
|
#define USE_SOFTSERIAL1
|
||||||
#define SOFTSERIAL1_RX_PIN PB0 // PWM5
|
// Since PB0 (motor 5) and PB1 (motor 6) are assigned with N-channels, these pin can not handle input.
|
||||||
#define SOFTSERIAL1_TX_PIN PB1 // PWM6
|
// Therefore, receiving function of SOFTSERIAL1 can only be assigned to PB3 (DEBUG).
|
||||||
|
// Default defined here is to use DEBUG for half-duplex serial, suitable for VTX (SmartAudio or Tramp) controls.
|
||||||
|
// For non-half-duplex requirement (full-duplex or simplex in either direction), assign PB3 to RX and PB0 or PB1 to TX.
|
||||||
|
#define SOFTSERIAL1_RX_PIN NONE
|
||||||
|
#define SOFTSERIAL1_TX_PIN PB3 // DEBUG
|
||||||
|
|
||||||
#define USE_SOFTSERIAL2
|
#define USE_SOFTSERIAL2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue