1
0
Fork 0
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:
Dominic Clifton 2014-05-31 22:50:05 +01:00
commit 14448f4734
5 changed files with 51 additions and 10 deletions

View file

@ -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