WIP partition table

This commit is contained in:
Daniel Jobson 2024-08-30 14:58:19 +02:00
parent a5c2d05cb1
commit c3baad9a23
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
4 changed files with 141 additions and 3 deletions

View file

@ -7,6 +7,7 @@
#include "assert.h"
#include "blake2s/blake2s.h"
#include "lib.h"
#include "partition_table.h"
#include "proto.h"
#include "state.h"
@ -405,6 +406,7 @@ int main(void)
struct frame_header hdr = {0};
uint8_t cmd[CMDLEN_MAXBYTES] = {0};
enum state state = FW_STATE_INITIAL;
partition_table_t part_table;
print_hw_version();
@ -419,7 +421,10 @@ int main(void)
/*@+mustfreeonly@*/
ctx.use_uss = false;
readbyte();
scramble_ram();
part_table_init(&part_table);
for (;;) {
switch (state) {