From 83c849c99cdb180b819da8e4d4fa3a1f4f9a5118 Mon Sep 17 00:00:00 2001 From: Marcin Gasiorek Date: Tue, 22 Nov 2022 10:12:18 +0100 Subject: [PATCH] Removed delay implementation --- pal/src/sid_delay.c | 5 ----- tests/functional/pal_delay/src/main.c | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pal/src/sid_delay.c b/pal/src/sid_delay.c index 203c4d08e5..e713d8fdf1 100644 --- a/pal/src/sid_delay.c +++ b/pal/src/sid_delay.c @@ -13,9 +13,4 @@ void sid_pal_delay_us(uint32_t delay) { -#ifdef CONFIG_MULTITHREADING - (void)k_usleep(delay); -#else - (void)k_busy_wait(delay); -#endif } diff --git a/tests/functional/pal_delay/src/main.c b/tests/functional/pal_delay/src/main.c index 7c480c46ec..5ded0dd66d 100644 --- a/tests/functional/pal_delay/src/main.c +++ b/tests/functional/pal_delay/src/main.c @@ -27,6 +27,8 @@ void test_sid_pal_delay(void) { uint64_t timestamp = TIMESTAMP_US_GET(); + TEST_IGNORE_MESSAGE("NOT IMPLEMENTED YET"); + sid_pal_delay_us(MIN_DELAY_US); uint64_t delta = TIMESTAMP_US_GET() - timestamp; TEST_ASSERT_LESS_OR_EQUAL(MAX_DELAY_US_THRESHOLD, abs((int)(MIN_DELAY_US - delta)));