From b574a9ba9bae54b6bb58805cc918fa5e8f7e208c Mon Sep 17 00:00:00 2001 From: Ramakrishna Pallala Date: Tue, 6 Feb 2018 23:26:18 +0530 Subject: [PATCH] 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 --- ext/hal/altera/altera_hal/HAL/src/altera_common.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ext/hal/altera/altera_hal/HAL/src/altera_common.c b/ext/hal/altera/altera_hal/HAL/src/altera_common.c index d1b3f77ba90..f87f3dac28a 100644 --- a/ext/hal/altera/altera_hal/HAL/src/altera_common.c +++ b/ext/hal/altera/altera_hal/HAL/src/altera_common.c @@ -66,3 +66,17 @@ void alt_handle_irq(void* base, alt_u32 id) void alt_tick (void) { } + +#include "priv/alt_dev_llist.h" +int alt_dev_llist_insert (alt_dev_llist* dev, alt_llist* list) +{ + return 0; +} + +#include "priv/alt_busy_sleep.h" +#include +unsigned int alt_busy_sleep (unsigned int us) +{ + k_busy_wait(us); + return 0; +}