1
0
Fork 0
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:
jflyper 2018-01-28 22:21:41 +09:00
parent 06326c8b69
commit bc070558b1
2 changed files with 8 additions and 3 deletions

View file

@ -26,7 +26,8 @@
/*
* - 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] = {
DEF_TIM(TIM3, CH2, PC7, TIM_USE_PPM, 0, 0 ), // PPM IN

View file

@ -119,8 +119,12 @@
#define UART4_TX_PIN NONE // PA0
#define USE_SOFTSERIAL1
#define SOFTSERIAL1_RX_PIN PB0 // PWM5
#define SOFTSERIAL1_TX_PIN PB1 // PWM6
// Since PB0 (motor 5) and PB1 (motor 6) are assigned with N-channels, these pin can not handle input.
// 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