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:
parent
3a634ae5c5
commit
f7518203aa
21 changed files with 288 additions and 165 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue