summaryrefslogtreecommitdiff
path: root/core/cortex-m0/task.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2016-05-07 01:37:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-03 03:00:06 -0700
commitb5c56aba6f756eca9bfdeac67289ffafb9d37ff0 (patch)
tree7cd3895c73a895e248a60f719440e7a3ee9dc9fe /core/cortex-m0/task.c
parentde4abe07f78ed7e29c589e6edc2b3a531e76cd5b (diff)
downloadchrome-ec-b5c56aba6f756eca9bfdeac67289ffafb9d37ff0.tar.gz
core: cortex-m0: Fix task routine prototypes
The task routines are void func(void), not int func(void *). BUG=none BRANCH=none TEST=compile tested on chell Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Change-Id: I599ff2433d821bfb446fbb4f84a803c6feffa0b3 Reviewed-on: https://chromium-review.googlesource.com/343213 Commit-Ready: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/cortex-m0/task.c')
-rw-r--r--core/cortex-m0/task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c
index 1d4ded513e..b013fe82f4 100644
--- a/core/cortex-m0/task.c
+++ b/core/cortex-m0/task.c
@@ -32,7 +32,7 @@ typedef union {
#define STACK_UNUSED_VALUE 0xdeadd00d
/* declare task routine prototypes */
-#define TASK(n, r, d, s) int r(void *);
+#define TASK(n, r, d, s) void r(void);
void __idle(void);
CONFIG_TASK_LIST
CONFIG_TEST_TASK_LIST