blob: 7e54c83295d2278354f794ecd4b578b8caf60041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Copyright 2021 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.
*/
#include <zephyr/kernel.h>
#include "ec_app_main.h"
#include "host_command.h"
/** A stub main to call the real ec app main function. LCOV_EXCL_START */
void main(void)
{
ec_app_main();
if (IS_ENABLED(CONFIG_TASK_HOSTCMD_THREAD_MAIN)) {
host_command_main();
} else if (IS_ENABLED(CONFIG_THREAD_MONITOR)) {
/*
* Avoid returning so that the main stack is displayed by the
* "kernel stacks" shell command.
*/
k_sleep(K_FOREVER);
}
}
/* LCOV_EXCL_STOP */
|