mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 00:35:34 +03:00
Add flash partitioning support (#5474)
This commit is contained in:
parent
42a59f38c2
commit
0551f8743a
10 changed files with 432 additions and 53 deletions
|
@ -44,6 +44,7 @@
|
|||
#include "drivers/bus_i2c.h"
|
||||
#include "drivers/compass/compass.h"
|
||||
#include "drivers/display.h"
|
||||
#include "drivers/flash.h"
|
||||
#include "drivers/osd.h"
|
||||
#include "drivers/osd_symbols.h"
|
||||
#include "drivers/pwm_mapping.h"
|
||||
|
@ -293,8 +294,8 @@ static void serializeSDCardSummaryReply(sbuf_t *dst)
|
|||
static void serializeDataflashSummaryReply(sbuf_t *dst)
|
||||
{
|
||||
#ifdef USE_FLASHFS
|
||||
const flashGeometry_t *geometry = flashfsGetGeometry();
|
||||
sbufWriteU8(dst, flashfsIsReady() ? 1 : 0);
|
||||
const flashGeometry_t *geometry = flashGetGeometry();
|
||||
sbufWriteU8(dst, flashIsReady() ? 1 : 0);
|
||||
sbufWriteU32(dst, geometry->sectors);
|
||||
sbufWriteU32(dst, geometry->totalSize);
|
||||
sbufWriteU32(dst, flashfsGetOffset()); // Effectively the current number of bytes stored on the volume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue