1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Initial rework - removing target specific code from main.c

Moved FLASH to masterConfig
Moved LED (named statusLeds) to masterConfig
Fixed up some targets to remove defines from main.c
This commit is contained in:
blckmn 2016-12-04 15:48:15 +11:00
parent 3a634ae5c5
commit f7518203aa
21 changed files with 288 additions and 165 deletions

View file

@ -18,6 +18,7 @@
#pragma once
#include <stdint.h>
#include "drivers/io_types.h"
typedef struct flashGeometry_s {
uint16_t sectors; // Count of the number of erasable blocks on the device
@ -29,3 +30,7 @@ typedef struct flashGeometry_s {
uint32_t totalSize; // This is just sectorSize * sectors
} flashGeometry_t;
typedef struct flashConfig_s {
ioTag_t csTag;
} flashConfig_t;