Skip to content

Commit

Permalink
Merge pull request #2726 from hathach/hil-add-ra4m1
Browse files Browse the repository at this point in the history
add ra4m1 ek for hil test
  • Loading branch information
hathach authored Jul 19, 2024
2 parents 7706e6f + b35173b commit ad3c49c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .idea/cmake.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion hw/bsp/ra/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -169,7 +176,6 @@ void SysTick_Handler(void) {
uint32_t board_millis(void) {
return system_ticks;
}

#endif

//--------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion test/hil/hil_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def main():
if 'tests' in item:
test_list = item['tests'] + ['board_test']
else:
test_list = all_tests
test_list = list(all_tests)

# remove skip_tests
if 'tests_skip' in item:
Expand Down
9 changes: 9 additions & 0 deletions test/hil/rpi.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
"flasher": "jlink",
"flasher_sn": "000611000000",
"flasher_args": "-device MIMXRT1011xxx5A"
},
{
"name": "ra4m1_ek",
"uid": "152E163038303131393346E46F26574B",
"tests_skip": ["cdc_msc", "cdc_msc_freertos"],
"comment": "MSC is slow to enumerated #2602",
"flasher": "jlink",
"flasher_sn": "000831174392",
"flasher_args": "-device R7FA4M1AB"
}
]
}

0 comments on commit ad3c49c

Please sign in to comment.