summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-02-26 14:05:08 +0700
committerhathach <[email protected]>2021-02-26 14:05:08 +0700
commitf6b48c07fca039ea49be49062298e1dc8cc78471 (patch)
tree2e45d30f9b918f160bd379ca1d87b7a408abd3a4 /src/osal
parent0c05a02e676bdaa5f22e622a63de8af9b7851d97 (diff)
add rp2040 to host example build
Diffstat (limited to 'src/osal')
-rw-r--r--src/osal/osal.h1
-rw-r--r--src/osal/osal_none.h9
-rw-r--r--src/osal/osal_pico.h4
3 files changed, 2 insertions, 12 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h
index 02e3e0a06..28bdf479c 100644
--- a/src/osal/osal.h
+++ b/src/osal/osal.h
@@ -66,7 +66,6 @@ typedef void (*osal_task_func_t)( void * );
//--------------------------------------------------------------------+
// OSAL Porting API
//--------------------------------------------------------------------+
-//static inline void osal_task_delay(uint32_t msec);
//------------- Semaphore -------------//
static inline osal_semaphore_t osal_semaphore_create(osal_semaphore_def_t* semdef);
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h
index ea6818621..a1f997cf2 100644
--- a/src/osal/osal_none.h
+++ b/src/osal/osal_none.h
@@ -34,14 +34,7 @@
//--------------------------------------------------------------------+
// TASK API
//--------------------------------------------------------------------+
-//static inline void osal_task_delay(uint32_t msec)
-//{
-// (void) msec;
-// // TODO only used by Host stack, will implement using SOF
-//
-//// uint32_t start = tusb_hal_millis();
-//// while ( ( tusb_hal_millis() - start ) < msec ) {}
-//}
+
//--------------------------------------------------------------------+
// Binary Semaphore API
diff --git a/src/osal/osal_pico.h b/src/osal/osal_pico.h
index de964a7a0..c277af271 100644
--- a/src/osal/osal_pico.h
+++ b/src/osal/osal_pico.h
@@ -39,12 +39,10 @@
//--------------------------------------------------------------------+
// TASK API
//--------------------------------------------------------------------+
-#ifndef RP2040_USB_HOST_MODE
static inline void osal_task_delay(uint32_t msec)
{
- sleep_ms(msec);
+ sleep_ms(msec);
}
-#endif
//--------------------------------------------------------------------+
// Binary Semaphore API