mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
The first time you use this with a particular th, connect only th and run ./cts.py --th Then connect both boards and you can run ./cts.py to build/flash both boards. BRANCH=None BUG=None TEST=manual - Enter chroot - Navigate to ec/cts - Connect only th - 'sudo ./cts.py --th' - './cts.py -b' - Exit chroot - Connect both boards - './cts.py -f' Each board should flash successfully Change-Id: Ib14fccabcd9fdad04f9b92817da597bc0dcb3d89 Reviewed-on: https://chromium-review.googlesource.com/358100 Commit-Ready: Chris Chen <twothreecc@google.com> Tested-by: Chris Chen <twothreecc@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
70 lines
1.7 KiB
C
70 lines
1.7 KiB
C
/* Copyright (c) 2011 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.
|
|
*/
|
|
|
|
/* define the task identifier of all compiled tasks */
|
|
|
|
#ifndef __CROS_EC_TASK_ID_H
|
|
#define __CROS_EC_TASK_ID_H
|
|
|
|
/* excludes non-base tasks for test build */
|
|
#ifdef TEST_BUILD
|
|
#define TASK_NOTEST(n, r, d, s)
|
|
#define TASK_TEST TASK
|
|
#else
|
|
#define TASK_NOTEST TASK
|
|
#define CONFIG_TEST_TASK_LIST
|
|
#endif
|
|
|
|
#ifdef CTS_MODULE
|
|
#define TASK_CTS TASK
|
|
#else
|
|
#define TASK_CTS(n, r, d, s)
|
|
#endif
|
|
|
|
#define TASK_ALWAYS TASK
|
|
|
|
/* define the name of the header containing the list of tasks */
|
|
#define STRINGIFY0(name) #name
|
|
#define STRINGIFY(name) STRINGIFY0(name)
|
|
#define TEST_TASK_LIST STRINGIFY(TEST_TASKFILE)
|
|
#define BOARD_TASK_LIST STRINGIFY(BOARD_TASKFILE)
|
|
|
|
#include BOARD_TASK_LIST
|
|
#ifdef TEST_BUILD
|
|
#include TEST_TASK_LIST
|
|
#endif
|
|
|
|
/* Task identifier (8 bits) */
|
|
typedef uint8_t task_id_t;
|
|
|
|
/**
|
|
* enumerate all tasks in the priority order
|
|
*
|
|
* the identifier of a task can be retrieved using the following constant:
|
|
* TASK_ID_<taskname> where <taskname> is the first parameter passed to the
|
|
* TASK macro in the TASK_LIST file.
|
|
*/
|
|
#define TASK(n, r, d, s) TASK_ID_##n,
|
|
enum {
|
|
TASK_ID_IDLE,
|
|
/* CONFIG_TASK_LIST is a macro coming from the BOARD_TASK_LIST file */
|
|
CONFIG_TASK_LIST
|
|
/* CONFIG_TEST_TASK_LIST is a macro from the TEST_TASK_LIST file */
|
|
CONFIG_TEST_TASK_LIST
|
|
#ifdef EMU_BUILD
|
|
TASK_ID_TEST_RUNNER,
|
|
#endif
|
|
/* Number of tasks */
|
|
TASK_ID_COUNT,
|
|
/* Special task identifiers */
|
|
#ifdef EMU_BUILD
|
|
TASK_ID_INT_GEN = 0xfe, /* interrupt generator */
|
|
#endif
|
|
TASK_ID_INVALID = 0xff, /* unable to find the task */
|
|
};
|
|
#undef TASK
|
|
|
|
#endif /* __CROS_EC_TASK_ID_H */
|