aboutsummaryrefslogtreecommitdiff
path: root/include/odp
diff options
context:
space:
mode:
authorOla Liljedahl <ola.liljedahl@linaro.org>2015-02-02 19:52:56 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-02-05 18:20:34 +0300
commit18564de6fffd86fd28a7e58c688ba468d2131ec1 (patch)
tree4df11a185c69e5eb7c6739edb7e4a22a6406aa6b /include/odp
parent021a62f1d850aec64a3996601317c35cd7389291 (diff)
api: odp_timer.h: move definitions to plat/timer_types.h
Move the platform specific definitions for timer pool, timer and timeout to the platform's include/odp/plat/timer_types.h file. Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r--include/odp/api/timer.h32
1 files changed, 15 insertions, 17 deletions
diff --git a/include/odp/api/timer.h b/include/odp/api/timer.h
index b6b14a43b..b0992d0f2 100644
--- a/include/odp/api/timer.h
+++ b/include/odp/api/timer.h
@@ -22,17 +22,15 @@ extern "C" {
* @{
*/
-struct odp_timer_pool_s; /**< Forward declaration */
-
/**
-* ODP timer pool handle (platform dependent)
-*/
-typedef struct odp_timer_pool_s *odp_timer_pool_t;
+ * @typedef odp_timer_pool_t
+ * ODP timer pool handle
+ */
/**
- * Invalid timer pool handle (platform dependent).
+ * @def ODP_TIMER_POOL_INVALID
+ * Invalid timer pool handle
*/
-#define ODP_TIMER_POOL_INVALID NULL
/**
* Clock sources for timers in timer pool.
@@ -46,24 +44,24 @@ typedef enum {
} odp_timer_clk_src_t;
/**
-* ODP timer handle (platform dependent).
-*/
-typedef uint32_t odp_timer_t;
+ * @typedef odp_timer_t
+ * ODP timer handle
+ */
/**
-* ODP timeout handle (platform dependent).
-*/
-typedef void *odp_timeout_t;
+ * @def ODP_TIMER_INVALID
+ * Invalid timer handle
+ */
/**
- * Invalid timer handle (platform dependent).
+ * @typedef odp_timeout_t
+ * ODP timeout handle
*/
-#define ODP_TIMER_INVALID ((uint32_t)~0U)
/**
- * Invalid timeout handle (platform dependent).
+ * @def ODP_TIMEOUT_INVALID
+ * Invalid timeout handle
*/
-#define ODP_TIMEOUT_INVALID NULL
/**
* Return values of timer set calls.