summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-30 11:35:37 +0700
committerhathach <[email protected]>2013-01-30 11:35:37 +0700
commit07048b943e6b57aeee4a671b85d76a2f592e3205 (patch)
tree63af67247cbd779590cb4f0aa6798faccf680b5d /tinyusb/osal/osal.h
parent6db8af20236cfecba5aef54da148309982b28396 (diff)
add primitive_types.h for portable with uint8,16,32_t, and bool
add osal_common.h to ease the complaint of MISRA 19.1 implement OSAL_NONE Task loop, semaphore wait/post and its test code
Diffstat (limited to 'tinyusb/osal/osal.h')
-rw-r--r--tinyusb/osal/osal.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h
index 844c3c083..7e3977d1c 100644
--- a/tinyusb/osal/osal.h
+++ b/tinyusb/osal/osal.h
@@ -55,7 +55,7 @@
extern "C" {
#endif
-#include "common/common.h"
+#include "tusb_option.h"
#define TUSB_OS_NONE 1
#define TUSB_OS_CMSIS 2
@@ -68,22 +68,21 @@
#error TUSB_CFG_OS is not defined or OS is not supported yet
#endif
-typedef uint32_t osal_status_t; // TODO OSAL port
-typedef uint32_t osal_timeout_t; // TODO OSAL port
-
-enum
-{
- OSAL_TIMEOUT_WAIT_FOREVER = 0
-};
+//--------------------------------------------------------------------+
+// SEMAPHORE API
+//--------------------------------------------------------------------+
//--------------------------------------------------------------------+
// QUEUE API
//--------------------------------------------------------------------+
typedef uint32_t osal_queue_id_t;
-//osal_queue_id_t osal_queue_create(osal_queue_t *queue, uint8_t *buffer);
+////osal_queue_id_t osal_queue_create(osal_queue_t *queue, uint8_t *buffer);
osal_queue_id_t osal_queue_create(osal_queue_id_t *queue, uint8_t *buffer);
-tusb_error_t osal_queue_put(osal_queue_id_t qid, uint32_t data, osal_timeout_t msec);
-tusb_error_t osal_queue_get(osal_queue_id_t qid, uint32_t *data, osal_timeout_t msec);
+//tusb_error_t osal_queue_put(osal_queue_id_t qid, uint32_t data, osal_timeout_t msec);
+//tusb_error_t osal_queue_get(osal_queue_id_t qid, uint32_t *data, osal_timeout_t msec);
+
+
+
#ifdef __cplusplus
}