Skip to content

Commit b574a9b

Browse files
Ramakrishna PallalaAnas Nashif
authored andcommitted
ext: hal: altera: Add wrapper functions for Altera HAL runtime API's
Add wrapper or helper functions for Altera HAL runtime API's to enable Altera HAL drivers on Zephyr. Signed-off-by: Ramakrishna Pallala <[email protected]>
1 parent a5eb541 commit b574a9b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ext/hal/altera/altera_hal/HAL/src/altera_common.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,17 @@ void alt_handle_irq(void* base, alt_u32 id)
6666
void alt_tick (void)
6767
{
6868
}
69+
70+
#include "priv/alt_dev_llist.h"
71+
int alt_dev_llist_insert (alt_dev_llist* dev, alt_llist* list)
72+
{
73+
return 0;
74+
}
75+
76+
#include "priv/alt_busy_sleep.h"
77+
#include <kernel.h>
78+
unsigned int alt_busy_sleep (unsigned int us)
79+
{
80+
k_busy_wait(us);
81+
return 0;
82+
}

0 commit comments

Comments
 (0)