Fix attach nOS-V RT test

The nosv_attach() function no longer needs a the type argument.
This commit is contained in:
Rodrigo Arias 2023-12-12 18:50:57 +01:00
parent 0a534f6c46
commit ae7ef21014

View File

@ -12,14 +12,8 @@ main(void)
{
nosv_init();
nosv_task_type_t type;
if (nosv_type_init(&type, NULL, NULL, NULL, "adopted", NULL,
NULL, NOSV_TYPE_INIT_EXTERNAL)
!= 0)
die("nosv_type_init failed");
nosv_task_t task;
if (nosv_attach(&task, type, 0, NULL, 0) != 0)
if (nosv_attach(&task, NULL, NULL, 0) != 0)
die("nosv_attach failed");
sleep_us(100);
@ -27,9 +21,6 @@ main(void)
if (nosv_detach(0) != 0)
die("nosv_detach failed");
if (nosv_type_destroy(type, 0) != 0)
die("nosv_type_destroy failed");
if (nosv_shutdown() != 0)
die("nosv_shutdown failed");