Files
OpenCellular/cts/task/cts.tasklist
Daisuke Nojiri 0874f1a197 eCTS: Add task suite
Task A wakes up B and goes to sleep. Task B wakes up C then goes to
sleep. Task C wakes up A then goes to sleep. This is repeated
repeat_count times:

  A -> B -> C -> A -> ...

It's expected all tasks to run exactly repeat_count times. Tick task
runs to inject some irregularity.

BUG=chromium:663873
BRANCH=none
TEST=cts.py -m task

Change-Id: Ib7227f05f09b7a49f8528aff6e6e8d3e6df93ba7
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/409534
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2016-11-10 21:28:31 -08:00

23 lines
814 B
Plaintext

/* Copyright (c) 2013 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_ALWAYS(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_CTS_TASK_LIST \
TASK_ALWAYS(A, task_abc, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(B, task_abc, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(C, task_abc, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(TICK, task_tick, NULL, 256) \
TASK_ALWAYS(CTS, cts_task, NULL, TASK_STACK_SIZE)