summaryrefslogtreecommitdiff
path: root/test/rtc.tasklist
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-09-13 15:04:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-26 18:24:07 -0700
commit72ea08f9db07160177afdf92ba8a7f7e1230331a (patch)
treef30c50edd992f6105db3140e2dd530c8edcfd05e /test/rtc.tasklist
parentbe96cd65ed78a15c843e513cebd4345a29e6b2fa (diff)
downloadchrome-ec-72ea08f9db07160177afdf92ba8a7f7e1230331a.tar.gz
rtc: Add functions and tests for time conversion
To implement rtc driver for some ec chips, we need to convert between calandar date and seconds (since epoch time, 01-01-1970 00:00:00). Sicne these functions are HW-independent, let's add common/rtc.c, include/rtc.h, and unit test for this. BUG=b:63908519 BRANCH=none TEST=make buildall test -j Change-Id: Icb1e768d2b3674d5225b83e09475e984eb104d06 Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/666985 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org> Reviewed-by: Brian Norris <briannorris@chromium.org>
Diffstat (limited to 'test/rtc.tasklist')
-rw-r--r--test/rtc.tasklist17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rtc.tasklist b/test/rtc.tasklist
new file mode 100644
index 0000000000..e76178ba0a
--- /dev/null
+++ b/test/rtc.tasklist
@@ -0,0 +1,17 @@
+/* Copyright 2017 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * List of enabled tasks in the priority order
+ *
+ * The first one has the lowest priority.
+ *
+ * For each task, use the macro TASK_TEST(n, r, d, s) where :
+ * 'n' in the name of the task
+ * 'r' in the main routine of the task
+ * 'd' in an opaque parameter passed to the routine at startup
+ * 's' is the stack size in bytes; must be a multiple of 8
+ */
+#define CONFIG_TEST_TASK_LIST