-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added target for Speedybee F7 Mini V2 FC
- Loading branch information
1 parent
a830718
commit d0d4b0d
Showing
3 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |