-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
Refactor all processor headers which had the same content into a generic set, to reduce the number of duplicates. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
add_subdirectory (${PROJECT_PROCESSOR}) | ||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_PROCESSOR}/cpu.h") | ||
collect (PROJECT_LIB_HEADERS ${PROJECT_PROCESSOR}/cpu.h) | ||
set(HAVE_PROCESSOR_CPU_H 1 CACHE INTERNAL "Have include ${PROJECT_PROCESSOR}/cpu.h") | ||
else() | ||
collect (PROJECT_LIB_HEADERS generic/cpu.h) | ||
endif() | ||
|
||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_PROCESSOR}/atomic.h") | ||
collect (PROJECT_LIB_HEADERS ${PROJECT_PROCESSOR}/atomic.h) | ||
set(HAVE_PROCESSOR_ATOMIC_H 1 CACHE INTERNAL "Have include ${PROJECT_PROCESSOR}/atomic.h") | ||
else() | ||
collect (PROJECT_LIB_HEADERS generic/atomic.h) | ||
endif() | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file generic/atomic.h | ||
* @brief Generic environment atomic primitives for libmetal. | ||
*/ | ||
|
||
#ifndef __METAL_GENERIC_ATOMIC__H__ | ||
#define __METAL_GENERIC_ATOMIC__H__ | ||
|
||
#endif /* __METAL_GENERIC_ATOMIC__H__ */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file generic/cpu.h | ||
* @brief Generic CPU specific primitives | ||
*/ | ||
|
||
#ifndef __METAL_GENERIC_CPU__H__ | ||
#define __METAL_GENERIC_CPU__H__ | ||
|
||
#define metal_cpu_yield() | ||
|
||
#endif /* __METAL_GENERIC_CPU__H__ */ |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.