Skip to content

Commit

Permalink
Added target for Speedybee F7 Mini V2 FC
Browse files Browse the repository at this point in the history
  • Loading branch information
Copper280z authored and bkleiner committed Sep 26, 2022
1 parent a830718 commit d0d4b0d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
8 changes: 7 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -495,4 +495,10 @@ build_flags =
extends = stm32f405
build_flags =
${stm32f405.build_flags}
-Isrc/targets/flywoof405s_aio
-Isrc/targets/flywoof405s_aio

[env:speedybeef7mini_v2]
extends = stm32f722
build_flags =
${stm32f722.build_flags}
-Isrc/targets/speedybeef7mini_v2
11 changes: 11 additions & 0 deletions script/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -609,5 +609,16 @@
}
}
]
},
{
"name": "speedybeef7mini_v2",
"configurations": [
{
"name": "brushless",
"defines": {
"BRUSHLESS_TARGET": ""
}
}
]
}
]
58 changes: 58 additions & 0 deletions src/targets/speedybeef7mini_v2/target.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

#include "config.h"
#include "config_helper.h"

#define SPEEDYBEEF7MINIV2

// PORTS
#define SPI_PORTS \
SPI1_PA5PA6PA7 \
SPI2_PB13PB14PB15 \
SPI3_PC10PC11PC12

#define USART_PORTS \
USART1_PA10PA9 \
USART2_PA3PA2 \
USART3_PB11PB10 \
USART4_PA1PA0 \
USART6_PC7PC6

// LEDS
#define LED_NUMBER 1
#define LED1PIN PIN_A14
#define LED1_INVERT

#define BUZZER_PIN PIN_C13

// GYRO
#define GYRO_SPI_PORT SPI_PORT1
#define GYRO_NSS PIN_B2
#define GYRO_INT PIN_C4
#define GYRO_ORIENTATION GYRO_ROTATE_90_CCW

// OSD
#define USE_MAX7456
#define MAX7456_SPI_PORT SPI_PORT2
#define MAX7456_NSS PIN_B12

#define USE_M25P16
#define M25P16_SPI_PORT SPI_PORT3
#define M25P16_NSS_PIN PIN_D2

// VOLTAGE DIVIDER
#define VBAT_PIN PIN_C2
#define VBAT_DIVIDER_R1 10000
#define VBAT_DIVIDER_R2 1000

#define IBAT_PIN PIN_C1
#define IBAT_SCALE 250

// MOTOR PINS
// S3_OUT
#define MOTOR_PIN0 MOTOR_PIN_PB0
// S4_OUT
#define MOTOR_PIN1 MOTOR_PIN_PB1
// S1_OUT
#define MOTOR_PIN2 MOTOR_PIN_PB4
// S2_OUT
#define MOTOR_PIN3 MOTOR_PIN_PB5

0 comments on commit d0d4b0d

Please sign in to comment.