Skip to content
This repository was archived by the owner on Nov 19, 2022. It is now read-only.

Commit 2a90bbc

Browse files
authored
Merge pull request #5 from soburi/zephyr_module
Add zephyr module configuration files
2 parents eb7f44f + 6593c6d commit 2a90bbc

File tree

8 files changed

+39
-0
lines changed

8 files changed

+39
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_subdirectory(cores)
2+
add_subdirectory(variants)
3+

Kconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Copyright (c) 2017 Linaro Limited
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
config ARDUINO_API
8+
bool "ARDUINO_API"
9+
depends on SERIAL
10+
depends on UART_INTERRUPT_DRIVEN
11+
depends on CPLUSPLUS
12+
13+
if ARDUINO_API
14+
15+
config ARDUINO_MAIN_LOOP
16+
bool "ARDUINO_MAIN_LOOP"
17+
default true
18+
endif

cores/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(scirocco)

cores/scirocco/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
zephyr_include_directories(.)
3+
zephyr_sources(main.cpp)
4+
zephyr_sources(wiring.c)
5+
zephyr_sources(wiring_private.c)
6+
7+

variants/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${BOARD})
2+
add_subdirectory(${BOARD})
3+
endif()

variants/native/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zephyr_include_directories(.)
2+
zephyr_sources(variant.cpp)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
zephyr_include_directories(.)
2+
zephyr_sources(variant.cpp)

zephyr/module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build:
2+
cmake: .
3+
kconfig: Kconfig

0 commit comments

Comments
 (0)