Skip to content

Commit 7381fb5

Browse files
committed
Update UART log for the CI
1 parent 0a92d99 commit 7381fb5

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

source/main-hw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ extern Serial shared_pc;
3131
#define LED_OFF true
3232
#define SECURE_SWITCH SW2
3333
#define SECURE_SWITCH_PULL PullUp
34+
#define SHARED_SERIAL_BAUD 9600
3435

3536
#define MAIN_ACL(acl_list_name) \
3637
static const UvisorBoxAclItem acl_list_name[] = { \
@@ -59,6 +60,7 @@ extern Serial shared_pc;
5960
#define LED_OFF false
6061
#define SECURE_SWITCH SW0
6162
#define SECURE_SWITCH_PULL PullUp
63+
#define SHARED_SERIAL_BAUD 115200
6264

6365
#define MAIN_ACL(acl_list_name) \
6466
static const UvisorBoxAclItem acl_list_name[] = { \
@@ -79,6 +81,7 @@ extern Serial shared_pc;
7981
#define LED_OFF false
8082
#define SECURE_SWITCH USER_BUTTON
8183
#define SECURE_SWITCH_PULL PullDown
84+
#define SHARED_SERIAL_BAUD 9600
8285

8386
#define MAIN_ACL(acl_list_name) \
8487
static const UvisorBoxAclItem acl_list_name[] = { \

source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ DigitalOut led_red(LED1);
3838
DigitalOut led_green(LED2);
3939
DigitalOut led_blue(LED3);
4040

41-
Serial shared_pc(USBTX, USBRX, 115200);
41+
Serial shared_pc(USBTX, USBRX, SHARED_SERIAL_BAUD);
4242

4343
static uint32_t get_a_number()
4444
{

test/log.txt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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)

0 commit comments

Comments
 (0)