aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-12-23 09:43:49 +0200
committerMatias Elo <matias.elo@nokia.com>2023-02-07 15:07:27 +0200
commit8139d878964e34dc62242a27c33ef8043d430922 (patch)
treea9f97faf3f89d20d28cd2e75f11d76ed53c76a51 /include
parentd74fabe0960815c17a1746bbc9edc4378dc40fcb (diff)
api: timer: deprecate old timer pool clock sources
Deprecate old timer pool clock sources ODP_CLOCK_CPU and ODP_CLOCK_EXT, which have been replaced by ODP_CLOCK_DEFAULT and ODP_CLOCK_SRC_1. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/timer_types.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/include/odp/api/spec/timer_types.h b/include/odp/api/spec/timer_types.h
index 754c831b2..bbc7ef8dc 100644
--- a/include/odp/api/spec/timer_types.h
+++ b/include/odp/api/spec/timer_types.h
@@ -20,8 +20,9 @@
extern "C" {
#endif
-#include <odp/api/std_types.h>
+#include <odp/api/deprecated.h>
#include <odp/api/event_types.h>
+#include <odp/api/std_types.h>
/** @defgroup odp_timer ODP TIMER
* Timer generating timeout events.
@@ -245,13 +246,21 @@ typedef enum {
/** The default clock source */
#define ODP_CLOCK_DEFAULT ODP_CLOCK_SRC_0
-/** For backwards compatibility, ODP_CLOCK_CPU is synonym of ODP_CLOCK_DEFAULT.
- * This will be deprecated in the future. */
+#if ODP_DEPRECATED_API
+/**
+ * For backwards compatibility, ODP_CLOCK_CPU is synonym of ODP_CLOCK_DEFAULT.
+ *
+ * @deprecated Use #ODP_CLOCK_DEFAULT instead.
+ */
#define ODP_CLOCK_CPU ODP_CLOCK_DEFAULT
-/** For backwards compatibility, ODP_CLOCK_EXT is synonym of ODP_CLOCK_SRC_1.
- * This will be deprecated in the future. */
+/**
+ * For backwards compatibility, ODP_CLOCK_EXT is synonym of ODP_CLOCK_SRC_1.
+ *
+ * @deprecated Use #ODP_CLOCK_SRC_1 instead.
+ */
#define ODP_CLOCK_EXT ODP_CLOCK_SRC_1
+#endif
/**
* Timer expiration mode