STM32F4: removed common_stm32f4xx.h - removed defines from common.h (await PR)
This commit is contained in:
parent
47ce9bb799
commit
7c7f89b4bb
|
@ -22,7 +22,6 @@
|
|||
#include "stm32f4xx_rcc.h"
|
||||
#include "stm32f4xx_gpio.h"
|
||||
#include "core_cm4.h"
|
||||
#include "target/common_stm32f4xx.h"
|
||||
|
||||
// Chip Unique ID on F405
|
||||
#define U_ID_0 (*(uint32_t*)0x1fff7a10)
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
|
||||
#include "drivers/system.h"
|
||||
|
||||
#ifndef SCHEDULER_DELAY_LIMIT
|
||||
#define SCHEDULER_DELAY_LIMIT 100
|
||||
#endif
|
||||
|
||||
static cfTask_t *currentTask = NULL;
|
||||
|
||||
static uint32_t totalWaitingTasks;
|
||||
|
|
|
@ -45,10 +45,6 @@ void taskBstReadWrite(void);
|
|||
void taskBstMasterProcess(void);
|
||||
#endif
|
||||
|
||||
#ifndef TASK_GYROPID_DESIRED_PERIOD
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 1000
|
||||
#endif
|
||||
|
||||
cfTask_t cfTasks[TASK_COUNT] = {
|
||||
[TASK_SYSTEM] = {
|
||||
.taskName = "SYSTEM",
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "AFNA" // AFroNAze - NAZE might be considered misleading on Naze clones like the flip32.
|
||||
#define USE_HARDWARE_REVISION_DETECTION
|
||||
|
||||
/* remove some options from common.h due to flash size */
|
||||
#undef GPS
|
||||
|
||||
#define BOARD_HAS_VOLTAGE_DIVIDER
|
||||
|
||||
#define LED0 PB3 // PB3 (LED)
|
||||
|
|
|
@ -17,30 +17,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define USE_SERVOS
|
||||
#define USE_CLI
|
||||
#define SERIAL_RX
|
||||
#define BLACKBOX
|
||||
|
||||
#if (FLASH_SIZE > 64)
|
||||
#define GPS
|
||||
#define GPS_PROTO_NMEA
|
||||
#define GPS_PROTO_UBLOX
|
||||
#define GPS_PROTO_I2C_NAV
|
||||
#define GPS_PROTO_NAZA
|
||||
|
||||
#define TELEMETRY
|
||||
#define TELEMETRY_FRSKY
|
||||
#define TELEMETRY_HOTT
|
||||
#define TELEMETRY_SMARTPORT
|
||||
#define TELEMETRY_LTM
|
||||
#endif
|
||||
|
||||
#if (FLASH_SIZE > 128)
|
||||
#define DISPLAY
|
||||
#define DISPLAY_ARMED_BITMAP
|
||||
#ifdef STM32F4
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 125
|
||||
#define SCHEDULER_DELAY_LIMIT 10
|
||||
#else
|
||||
#define SKIP_CLI_COMMAND_HELP
|
||||
#define SKIP_RX_MSP
|
||||
#define DISABLE_UNCOMMON_MIXERS
|
||||
#endif
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 1000
|
||||
#define SCHEDULER_DELAY_LIMIT 100
|
||||
#endif
|
|
@ -1,5 +0,0 @@
|
|||
/*
|
||||
Common defines applicable to STM32F4
|
||||
*/
|
||||
|
||||
#define TASK_GYROPID_DESIRED_PERIOD 125
|
Loading…
Reference in New Issue