Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "uECC.h"
#include "sha2.h"
#include "flags.h"
#include "flash.h"
#include "utils.h"
#include "touch.h"
#include "version.h"
Expand Down
11 changes: 1 addition & 10 deletions src/bootloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,9 @@
#include <stdint.h>


#define MPU_REGION_VALID (0x10)
#define MPU_REGION_ENABLE (0x01)
#define MPU_REGION_NORMAL (8 << 16)// TEX:0b001 S:0b0 C:0b0 B:0b0
#define MPU_REGION_STATE_NA (0x00 << 24)// No access
#define MPU_REGION_STATE_PRIV_RW (0x01 << 24)
#define MPU_REGION_STATE_RW (0x03 << 24)
#define MPU_REGION_STATE_PRIV_RO (0x05 << 24)
#define MPU_REGION_STATE_RO (0x06 << 24)
#define MPU_REGION_STATE_XN (0x01 << 28)

#define BOOT_SIG_M 4


typedef enum BOOT_OP_CODES {
OP_WRITE = 'w',/* 0x77 */
OP_ERASE = 'e',/* 0x65 */
Expand Down
Loading