summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-03-10 19:33:11 +0100
committerReinhard Panhuber <[email protected]>2021-03-10 19:33:11 +0100
commit8cb3bd3cd30172d3023facb2522a435b414a3b7e (patch)
tree1bc65aa35561cc43f4fab139a3a6e2654b110faa /src/osal
parentd5a5a1cab63e8e43b22f13db95df35afdfa6befb (diff)
parenta397353916db36d925f5aec654fc66d5ca09f427 (diff)
Merge remote-tracking branch 'upstream/edpt_ISO_xfer' into edpt_ISO_xfer
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.h8
3 files changed, 4 insertions, 14 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..bae1217eb 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
@@ -145,7 +143,7 @@ static inline bool osal_queue_receive(osal_queue_t qhdl, void* data)
// TODO: revisit... docs say that mutexes are never used from IRQ context,
// however osal_queue_recieve may be. therefore my assumption is that
// the fifo mutex is not populated for queues used from an IRQ context
- assert(!qhdl->ff.mutex);
+ //assert(!qhdl->ff.mutex);
_osal_q_lock(qhdl);
bool success = tu_fifo_read(&qhdl->ff, data);
@@ -159,7 +157,7 @@ static inline bool osal_queue_send(osal_queue_t qhdl, void const * data, bool in
// TODO: revisit... docs say that mutexes are never used from IRQ context,
// however osal_queue_recieve may be. therefore my assumption is that
// the fifo mutex is not populated for queues used from an IRQ context
- assert(!qhdl->ff.mutex);
+ //assert(!qhdl->ff.mutex);
_osal_q_lock(qhdl);
bool success = tu_fifo_write(&qhdl->ff, data);