Skip to content

Commit dfb6a00

Browse files
committed
fix emulation on host
1 parent 719f65a commit dfb6a00

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tests/host/common/flash_hal_mock.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <stdint.h>
44
#include <string.h>
55

6+
#include "flash_hal.h"
7+
68
extern "C"
79
{
810
uint32_t s_phys_addr = 0;

tests/host/common/flash_hal_mock.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55

66
extern "C"
77
{
8-
extern uint32_t s_phys_addr;
9-
extern uint32_t s_phys_size;
10-
extern uint32_t s_phys_page;
11-
extern uint32_t s_phys_block;
12-
extern uint8_t* s_phys_data;
13-
}
8+
9+
extern uint32_t s_phys_addr;
10+
extern uint32_t s_phys_size;
11+
extern uint32_t s_phys_page;
12+
extern uint32_t s_phys_block;
13+
extern uint8_t* s_phys_data;
1414

1515
extern int32_t flash_hal_read(uint32_t addr, uint32_t size, uint8_t *dst);
1616
extern int32_t flash_hal_write(uint32_t addr, uint32_t size, const uint8_t *src);
1717
extern int32_t flash_hal_erase(uint32_t addr, uint32_t size);
1818

19+
}
20+
1921
#endif

0 commit comments

Comments
 (0)