update target SPEEDYBEE F4

This commit is contained in:
allenfor2017 2018-04-30 18:51:51 +08:00
parent 3af1610d0b
commit b337cfb941
3 changed files with 6 additions and 9 deletions

View File

@ -71,7 +71,7 @@ This SpeedyBee F4 AIO board integrates the Bluetooth module, with SpeedyBee App,
### LED & PPM Input
| Value | Identifier | function | pin | Notes |
| ----- | ------------ | ----------| ------| ------------------------------------------------------------------------------------- |
| 1 | TIM5_CH4 | PPM | PC11 |
| 1 | TIM5_CH4 | PPM | PA3 |
| 2 | TIM4_CH1 | LED Strip Signal Input | PB6 |

View File

@ -28,7 +28,7 @@
#include "drivers/timer_def.h"
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
DEF_TIM(TIM5, CH4, PC11, TIM_USE_PPM, 0, 0), // PPM
DEF_TIM(TIM5, CH4, PA3, TIM_USE_PPM, 0, 0), // PPM
DEF_TIM(TIM8, CH1, PC6, TIM_USE_MOTOR, 0, 0), // S1 UP(1,2)
DEF_TIM(TIM8, CH2, PC7, TIM_USE_MOTOR, 0, 1), // S2 UP(2,1)
@ -39,8 +39,4 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
DEF_TIM(TIM4, CH3, PB8, TIM_USE_MOTOR, 0, 0), // S7 D(1,7)!S5 UP(2,6)
DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0), // LED D(1,0) UP(2,6)
DEF_TIM(TIM5, CH1, PA0, TIM_USE_PWM, 0, 0), // TX4 UP(1,6) D(1,2)!S1
DEF_TIM(TIM5, CH2, PA1, TIM_USE_PWM, 0, 0), // RX4 UP(1,6) D(1,4)
DEF_TIM(TIM9, CH1, PA2, TIM_USE_PWM, 0, 0), // TX2
};

View File

@ -80,6 +80,7 @@
#define USE_FLASH_M25P16
#define FLASH_CS_PIN PC0
#define FLASH_SPI_INSTANCE SPI3
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
// *************** OSD *****************************
#define USE_SPI_DEVICE_2
@ -136,7 +137,7 @@
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL)
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define CURRENT_METER_SCALE_DEFAULT 608
#define CURRENT_METER_SCALE_DEFAULT 302
#define USE_ESCSERIAL
#define ESCSERIAL_TIMER_TX_PIN PA3
@ -151,5 +152,5 @@
// *************** activate/deactivate Bluetooth When disarmed/armed using PINIO_BOX *****************************
#define PINIO1_PIN PB0
#define USABLE_TIMER_CHANNEL_COUNT 12
#define USED_TIMERS (TIM_N(1)|TIM_N(2)|TIM_N(4)|TIM_N(5)|TIM_N(8)|TIM_N(9))
#define USABLE_TIMER_CHANNEL_COUNT 9
#define USED_TIMERS (TIM_N(1)|TIM_N(2)|TIM_N(4)|TIM_N(5)|TIM_N(8))