-
Notifications
You must be signed in to change notification settings - Fork 17
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,3 +1,15 @@ | ||
add_subdirectory (${PROJECT_PROCESSOR}) | ||
if (EXISTS "${PROJECT_PROCESSOR}/cpu.h") | ||
collect (PROJECT_LIB_HEADERS ${PROJECT_PROCESSOR}/cpu.h) | ||
set(HAVE_PROCESSOR_CPU_H 1 INTERNAL CACHE "") | ||
else() | ||
collect (PROJECT_LIB_HEADERS generic/cpu.h) | ||
endif() | ||
|
||
if (EXISTS "${PROJECT_PROCESSOR}/atomic.h") | ||
collect (PROJECT_LIB_HEADERS ${PROJECT_PROCESSOR}/atomic.h) | ||
set(HAVE_PROCESSOR_ATOMIC_H 1 INTERNAL CACHE "") | ||
else() | ||
collect (PROJECT_LIB_HEADERS generic/atomic.h) | ||
endif() | ||
|
||
# vim: expandtab:ts=2:sw=2:smartindent |
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.