Skip to content

Commit 9c678af

Browse files
committed
fix: flash region
1 parent f83a5a9 commit 9c678af

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/fw/flash_region/flash_region.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#elif PLATFORM_SNOWY || PLATFORM_SPALDING
4343
#include "flash_region_s29vs.h"
4444
#elif PLATFORM_OBELIX
45-
#include "flash_region_mt25q.h"
45+
#include "flash_region_sf32lb_int.h"
4646
#else
4747
#error "Unknown platform"
4848
#endif
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#pragma once
2+
3+
#define SECTOR_SIZE_BYTES 0x10000
4+
#define SECTOR_ADDR_MASK (~(SECTOR_SIZE_BYTES - 1))
5+
6+
#define SUBSECTOR_SIZE_BYTES 0x1000
7+
#define SUBSECTOR_ADDR_MASK (~(SUBSECTOR_SIZE_BYTES - 1))
8+
#define FLASH_FILESYSTEM_BLOCK_SIZE SUBSECTOR_SIZE_BYTES
9+
10+
// Filesystem layout
11+
///////////////////////////////////////
12+
// TODO

0 commit comments

Comments
 (0)