File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 43
43
44
44
STATIC const esp_partition_t * _partition ;
45
45
46
+ // TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
47
+ #define SECTOR_SIZE 4096
48
+ STATIC uint8_t _cache [SECTOR_SIZE ];
49
+ STATIC uint32_t _cache_lba = 0xffffffff ;
50
+
46
51
void supervisor_flash_init (void ) {
47
52
_partition = esp_partition_find_first (ESP_PARTITION_TYPE_DATA ,
48
53
ESP_PARTITION_SUBTYPE_DATA_FAT ,
@@ -61,11 +66,6 @@ void port_internal_flash_flush(void) {
61
66
62
67
}
63
68
64
- // TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
65
- #define SECTOR_SIZE 4096
66
- STATIC uint8_t _cache [SECTOR_SIZE ];
67
- STATIC uint32_t _cache_lba ;
68
-
69
69
mp_uint_t supervisor_flash_read_blocks (uint8_t * dest , uint32_t block , uint32_t num_blocks ) {
70
70
esp_partition_read (_partition ,
71
71
block * FILESYSTEM_BLOCK_SIZE ,
You can’t perform that action at this time.
0 commit comments