mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-07 22:22:29 -04:00
WIP partition table
This commit is contained in:
parent
8a2ef282e0
commit
3c292a9625
4 changed files with 170 additions and 3 deletions
|
@ -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,8 +421,12 @@ int main(void)
|
|||
/*@+mustfreeonly@*/
|
||||
ctx.use_uss = false;
|
||||
|
||||
readbyte();
|
||||
|
||||
scramble_ram();
|
||||
|
||||
part_table_read(&part_table);
|
||||
|
||||
for (;;) {
|
||||
switch (state) {
|
||||
case FW_STATE_INITIAL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue