File tree Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ extern Serial shared_pc;
31
31
#define LED_OFF true
32
32
#define SECURE_SWITCH SW2
33
33
#define SECURE_SWITCH_PULL PullUp
34
+ #define SHARED_SERIAL_BAUD 9600
34
35
35
36
#define MAIN_ACL (acl_list_name ) \
36
37
static const UvisorBoxAclItem acl_list_name[] = { \
@@ -59,6 +60,7 @@ extern Serial shared_pc;
59
60
#define LED_OFF false
60
61
#define SECURE_SWITCH SW0
61
62
#define SECURE_SWITCH_PULL PullUp
63
+ #define SHARED_SERIAL_BAUD 115200
62
64
63
65
#define MAIN_ACL (acl_list_name ) \
64
66
static const UvisorBoxAclItem acl_list_name[] = { \
@@ -79,6 +81,7 @@ extern Serial shared_pc;
79
81
#define LED_OFF false
80
82
#define SECURE_SWITCH USER_BUTTON
81
83
#define SECURE_SWITCH_PULL PullDown
84
+ #define SHARED_SERIAL_BAUD 9600
82
85
83
86
#define MAIN_ACL (acl_list_name ) \
84
87
static const UvisorBoxAclItem acl_list_name[] = { \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ DigitalOut led_red(LED1);
38
38
DigitalOut led_green (LED2);
39
39
DigitalOut led_blue (LED3);
40
40
41
- Serial shared_pc (USBTX, USBRX, 115200 );
41
+ Serial shared_pc (USBTX, USBRX, SHARED_SERIAL_BAUD );
42
42
43
43
static uint32_t get_a_number ()
44
44
{
Original file line number Diff line number Diff line change 1
-
2
- ***** uVisor secure number store example *****
3
- vault : Only client_a can write into the vault
4
- vault : All clients can read the vault
5
- client_b: Attempt to write 0xFFFFFED4 (denied)
6
- client_a: Attempt to read : 0x00000000 (granted)
7
- client_a: Attempt to write 0xFFFFFE0C (granted)
8
- public : Attempt to read : 0xFFFFFE0C (granted)
9
- public : Attempt to write 0x00000019 (denied)
10
- client_b: Attempt to read : 0xFFFFFE0C (granted)
11
- client_a: Attempt to read : 0xFFFFFE0C (granted)
12
- client_a: Attempt to write 0xFFFFFC18 (granted)
13
- public : Attempt to read : 0xFFFFFC18 (granted)
1
+
2
+ ***** uVisor secure number store example *****
3
+ vault : Only client_a can write into the vault
4
+ vault : All clients can read the vault
5
+ public : Attempt to read : 0x00000000 (granted)
6
+ public : Attempt to write 0x00000019 (denied)
7
+ client_a: Attempt to read : 0x00000000 (granted)
8
+ client_a: Attempt to write 0xFFFFFE0C (granted)
9
+ client_b: Attempt to write 0xFFFFFED4 (denied)
10
+ public : Attempt to read : 0xFFFFFE0C (granted)
11
+ client_b: Attempt to read : 0xFFFFFE0C (granted)
12
+ public : Attempt to write 0xFFFFFE89 (denied)
You can’t perform that action at this time.
0 commit comments