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

Basic read/write/erase flash functionality works from the CLI

Very little code coverage tested yet, only writes of small sizes
This commit is contained in:
Nicholas Sherlock 2015-01-28 17:45:36 +13:00
parent ec3d85ae92
commit 3eb28f16ea
12 changed files with 839 additions and 4 deletions

View file

@ -44,6 +44,7 @@
#include "drivers/bus_i2c.h"
#include "drivers/bus_spi.h"
#include "drivers/inverter.h"
#include "drivers/flash_m25p16.h"
#include "flight/flight.h"
#include "flight/mixer.h"
@ -348,6 +349,13 @@ void init(void)
initTelemetry();
#endif
#ifdef FLASHFS
#ifdef NAZE
// naze32 rev5 and above have 16mbit of flash available
m25p16_init();
#endif
#endif
#ifdef BLACKBOX
initBlackbox();
#endif