Skip to content

Commit 69c1980

Browse files
committed
boards: nrf_bsim: add default soc_secure_mem_read
Add the default implementation of `soc_secure_mem_read` from `nordic/common/soc_secure.h`. Signed-off-by: Jordan Yates <[email protected]>
1 parent e90c58a commit 69c1980

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boards/native/nrf_bsim/soc/soc_secure.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ static inline void soc_secure_read_deviceid(uint32_t deviceid[2])
2121
deviceid[1] = nrf_ficr_deviceid_get(NRF_FICR, 1);
2222
}
2323

24+
static inline int soc_secure_mem_read(void *dst, void *src, size_t len)
25+
{
26+
(void)memcpy(dst, src, len);
27+
return 0;
28+
}
29+
2430
#endif /* BOARDS_POSIX_NRF52_BSIM_SOC_SECURE_H */

0 commit comments

Comments
 (0)