-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bkleiner
committed
Mar 19, 2023
1 parent
1818c8f
commit 6d704dc
Showing
4 changed files
with
64 additions
and
10 deletions.
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
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,44 @@ | ||
#include "config.h" | ||
|
||
// PORTS | ||
#define SPI_PORTS \ | ||
SPI1_PA5PA6PA7 \ | ||
SPI2_PB13PB14PB15 \ | ||
SPI3_PB3PB4PB5 | ||
|
||
#define USART_PORTS \ | ||
USART1_PA10PA9 \ | ||
USART2_PA3PA2 | ||
|
||
// LEDS | ||
#define LED_NUMBER 1 | ||
#define LED1PIN PIN_C13 | ||
#define LED1_INVERT | ||
#define BUZZER_PIN PIN_C15 | ||
|
||
// GYRO | ||
#define GYRO_SPI_PORT SPI_PORT1 | ||
#define GYRO_NSS PIN_A4 | ||
#define GYRO_INT PIN_A1 | ||
|
||
// OSD | ||
#define USE_MAX7456 | ||
#define MAX7456_SPI_PORT SPI_PORT2 | ||
#define MAX7456_NSS PIN_B12 | ||
|
||
#define USE_M25P16 | ||
#define M25P16_SPI_PORT SPI_PORT2 | ||
#define M25P16_NSS_PIN PIN_A14 | ||
|
||
// VOLTAGE DIVIDER | ||
#define VBAT_PIN PIN_B0 | ||
#define VBAT_DIVIDER_R1 10000 | ||
#define VBAT_DIVIDER_R2 1000 | ||
|
||
#define IBAT_PIN PIN_B1 | ||
|
||
// MOTOR PINS | ||
#define MOTOR_PIN0 MOTOR_PIN_PB7 | ||
#define MOTOR_PIN1 MOTOR_PIN_PB8 | ||
#define MOTOR_PIN2 MOTOR_PIN_PB10 | ||
#define MOTOR_PIN3 MOTOR_PIN_PB6 |