MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / launcherPartitionAlignment

Function launcherPartitionAlignment

src/partition_table_model.cpp:310–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310uint32_t launcherPartitionAlignment(uint8_t type, uint8_t subtype) {
311 if (type == kTypeApp) return LAUNCHER_APP_PARTITION_ALIGNMENT;
312 if (type == kTypeData &&
313 (subtype == ESP_PARTITION_SUBTYPE_DATA_FAT || subtype == ESP_PARTITION_SUBTYPE_DATA_SPIFFS ||
314 subtype == ESP_PARTITION_SUBTYPE_DATA_LITTLEFS)) {
315 return LAUNCHER_APP_PARTITION_ALIGNMENT;
316 }
317 return LAUNCHER_FLASH_SECTOR_SIZE;
318}
319
320bool launcherPartitionCompact(LauncherPartitionTable &table, String *error) {
321 uint32_t flashSize = table.flashSize;

Callers 2

launcherPartitionCompactFunction · 0.85
partitionAlignmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected