mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge branch 'naze32pro' - work in progress
Conflicts: Makefile
This commit is contained in:
commit
14448f4734
5 changed files with 51 additions and 10 deletions
|
@ -1,8 +1,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef STM32F3DISCOVERY
|
||||
|
||||
#ifdef STM32F303xC
|
||||
#include "stm32f30x_conf.h"
|
||||
#include "stm32f30x_rcc.h"
|
||||
#include "stm32f30x_gpio.h"
|
||||
|
@ -13,6 +12,27 @@
|
|||
#define U_ID_1 (*(uint32_t*)0x10000000)
|
||||
#define U_ID_2 (*(uint32_t*)0x10000003)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef NAZE32PRO
|
||||
#define LED0_GPIO GPIOB
|
||||
#define LED0_PIN Pin_12
|
||||
#define BEEP_GPIO GPIOB
|
||||
#define BEEP_PIN Pin_10
|
||||
|
||||
#define BUZZER
|
||||
#define LED0
|
||||
|
||||
#define GYRO
|
||||
#define ACC
|
||||
#define MAG
|
||||
|
||||
#define SENSORS_SET (SENSOR_ACC)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef STM32F3DISCOVERY
|
||||
|
||||
#define LED0_GPIO GPIOE
|
||||
#define LED0_PIN Pin_8|Pin_12 // Blue LEDs - PE8/PE12
|
||||
#define LED0_INVERTED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue