diff options
| author | hathach <[email protected]> | 2019-04-01 21:11:06 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-01 21:11:06 -0700 |
| commit | 0848c462b3e431a9da42e96537d2b597a4579636 (patch) | |
| tree | 746d6642e22e3ecf30d4f4c5f830c2a155bb28d7 /src/osal | |
| parent | 86c24b310509a368cc6a9dfbec43ce531e71d598 (diff) | |
| parent | 2c1072c0aba48a2e6cbe93118c286b7999b0db43 (diff) | |
Merge pull request #51 from hathach/develop
Add suspend, resume and remote wakeup support
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal.h | 1 | ||||
| -rw-r--r-- | src/osal/osal_freertos.h | 5 | ||||
| -rw-r--r-- | src/osal/osal_mynewt.h | 5 | ||||
| -rw-r--r-- | src/osal/osal_none.h | 7 |
4 files changed, 0 insertions, 18 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index 7ceb22125..d6c33de3f 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -61,7 +61,6 @@ typedef void (*osal_task_func_t)( void * ); * osal_queue_t osal_queue_create(osal_queue_def_t* qdef)
* osal_queue_receive (osal_queue_t const queue_hdl, void *p_data, uint32_t msec, uint32_t *p_error)
* bool osal_queue_send(osal_queue_t const queue_hdl, void const * data, bool in_isr)
- * osal_queue_reset()
*
* Semaphore
* osal_semaphore_def_t, osal_semaphore_t
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h index 639501bbf..973a18546 100644 --- a/src/osal/osal_freertos.h +++ b/src/osal/osal_freertos.h @@ -125,11 +125,6 @@ static inline bool osal_queue_send(osal_queue_t const queue_hdl, void const * da return in_isr ? xQueueSendToBackFromISR(queue_hdl, data, NULL) : xQueueSendToBack(queue_hdl, data, OSAL_TIMEOUT_WAIT_FOREVER); } -static inline void osal_queue_reset(osal_queue_t const queue_hdl) -{ - xQueueReset(queue_hdl); -} - #ifdef __cplusplus } #endif diff --git a/src/osal/osal_mynewt.h b/src/osal/osal_mynewt.h index 9fa9f541e..6f3d05325 100644 --- a/src/osal/osal_mynewt.h +++ b/src/osal/osal_mynewt.h @@ -161,11 +161,6 @@ static inline bool osal_queue_send(osal_queue_t const qhdl, void const * data, b return true; } -static inline void osal_queue_reset(osal_queue_t const queue_hdl) -{ - // TODO implement later -} - #ifdef __cplusplus } #endif diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h index 6144f3e5c..d1d365bbe 100644 --- a/src/osal/osal_none.h +++ b/src/osal/osal_none.h @@ -190,13 +190,6 @@ static inline bool osal_queue_send(osal_queue_t const qhdl, void const * data, b return success;
}
-static inline void osal_queue_reset(osal_queue_t const qhdl)
-{
- // tusb_hal_int_disable_all();
- tu_fifo_clear(&qhdl->ff);
- // tusb_hal_int_enable_all();
-}
-
#ifdef __cplusplus
}
#endif
|
