Skip to content

Commit

Permalink
portability: move cmsis APIs to subsys/portability
Browse files Browse the repository at this point in the history
Move cmsis OS apis under subsystem/portability. Those are not libraries
and only serve to provide a level of abstraction using the CMSIS OS APIs
to existing Zephyr interfaces.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Apr 20, 2021
1 parent 077447a commit a15f32f
Show file tree
Hide file tree
Showing 30 changed files with 17 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ if(NOT CONFIG_EXTERNAL_LIBC)
add_subdirectory(libc)
add_subdirectory(posix)
endif()
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V1 cmsis_rtos_v1)
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V2 cmsis_rtos_v2)
add_subdirectory(gui)
add_subdirectory(os)
add_subdirectory(util)
Expand Down
4 changes: 0 additions & 4 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ source "lib/libc/Kconfig"

menu "Additional libraries"

source "lib/cmsis_rtos_v1/Kconfig"

source "lib/cmsis_rtos_v2/Kconfig"

source "lib/gui/Kconfig"

source "lib/os/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions subsys/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ add_subdirectory(random)
add_subdirectory(storage)
add_subdirectory_ifdef(CONFIG_SETTINGS settings)
add_subdirectory(fb)
add_subdirectory(portability)
add_subdirectory(power)
add_subdirectory(stats)
add_subdirectory(task_wdt)
Expand Down
2 changes: 2 additions & 0 deletions subsys/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ source "subsys/modbus/Kconfig"

source "subsys/net/Kconfig"

source "subsys/portability/Kconfig"

source "subsys/power/Kconfig"

source "subsys/shell/Kconfig"
Expand Down
4 changes: 4 additions & 0 deletions subsys/portability/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V1 cmsis_rtos_v1)
add_subdirectory_ifdef(CONFIG_CMSIS_RTOS_V2 cmsis_rtos_v2)
10 changes: 10 additions & 0 deletions subsys/portability/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

menu "Portability"

source "subsys/portability/cmsis_rtos_v1/Kconfig"

source "subsys/portability/cmsis_rtos_v2/Kconfig"

endmenu
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a15f32f

Please sign in to comment.