Skip to content

Commit c32a5e2

Browse files
kv2019ilgirdwood
authored andcommitted
zephyr: add Zephyr version of sof/init.h
Add Zephyr version of sof/init.h. This is used define main entry points to the SOF application. The arch_init() entry point is not needed on Zephyr. Link: #9015 Signed-off-by: Kai Vehmanen <[email protected]>
1 parent 0fcf38c commit c32a5e2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

zephyr/include/sof/init.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* SPDX-License-Identifier: BSD-3-Clause
2+
*
3+
* Copyright(c) 2016,2024 Intel Corporation.
4+
*/
5+
6+
#ifndef __SOF_INIT_H__
7+
#define __SOF_INIT_H__
8+
9+
/* main firmware entry point - argc and argv not currently used */
10+
#ifndef CONFIG_ARCH_POSIX
11+
int main(int argc, char *argv[]);
12+
#endif
13+
14+
#if CONFIG_MULTICORE
15+
16+
struct sof;
17+
18+
int secondary_core_init(struct sof *sof);
19+
20+
#endif /* CONFIG_MULTICORE */
21+
22+
#endif /* __SOF_INIT_H__ */

0 commit comments

Comments
 (0)