mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-08 00:44:58 -04:00
fw: Remove storage area address and size from partition table
Instead we calculate start addresses from area index and use fixed size.
This commit is contained in:
parent
b837eec9e6
commit
930d204e9f
4 changed files with 51 additions and 27 deletions
|
@ -26,12 +26,6 @@ int part_table_read(struct partition_table *part_table)
|
|||
|
||||
part_table->header.version = PART_TABLE_VERSION;
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
part_table->app_storage[i].addr_start =
|
||||
(ADDR_STORAGE_AREA + i * SIZE_STORAGE_AREA);
|
||||
part_table->app_storage[i].size = SIZE_STORAGE_AREA;
|
||||
}
|
||||
|
||||
part_table_write(part_table);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue