summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-07-19 11:29:48 +0700
committerhathach <[email protected]>2024-07-19 11:29:48 +0700
commit94454684f78a528c343e306d723e6c8d2b05e932 (patch)
treec9b39e9eaeea8c0e7cb21eba9b47834ee7e27494 /hw
parenta615b0a0037fccf597d50685efb13082422c4885 (diff)
add ra4m1 ek for hil test
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/ra/family.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/bsp/ra/family.c b/hw/bsp/ra/family.c
index db8988a36..a8b4ebcc7 100644
--- a/hw/bsp/ra/family.c
+++ b/hw/bsp/ra/family.c
@@ -147,6 +147,13 @@ uint32_t board_button_read(void) {
return lvl == BUTTON_STATE_ACTIVE;
}
+size_t board_get_unique_id(uint8_t id[], size_t max_len) {
+ max_len = tu_min32(max_len, sizeof(bsp_unique_id_t));
+ bsp_unique_id_t const *uid = R_BSP_UniqueIdGet();
+ memcpy(id, uid->unique_id_bytes, max_len);
+ return max_len;
+}
+
int board_uart_read(uint8_t *buf, int len) {
(void) buf;
(void) len;
@@ -169,7 +176,6 @@ void SysTick_Handler(void) {
uint32_t board_millis(void) {
return system_ticks;
}
-
#endif
//--------------------------------------------------------------------+