2019-04-24 16:52:51 +03:00
|
|
|
#
|
|
|
|
# Copyright (c) 2019, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
zephyr_library()
|
|
|
|
|
|
|
|
zephyr_library_sources(soc.c)
|
2019-10-25 00:08:21 +09:00
|
|
|
|
|
|
|
zephyr_library_include_directories(
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
2023-05-19 10:34:39 -05:00
|
|
|
if(DEFINED CONFIG_LPC55XXX_USB_RAM)
|
2021-07-22 14:41:21 -05:00
|
|
|
zephyr_linker_sources_ifdef(CONFIG_USB_DEVICE_DRIVER
|
|
|
|
SECTIONS usb.ld)
|
|
|
|
|
2022-08-22 15:19:51 -05:00
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_USB_DEVICE_DRIVER USB_STACK_USE_DEDICATED_RAM=1)
|
2023-05-19 10:34:39 -05:00
|
|
|
endif()
|
2022-11-30 16:06:40 -06:00
|
|
|
|
|
|
|
# CMSIS SystemInit allows us to skip enabling clock to SRAM banks via
|
|
|
|
# this compiler definition
|
|
|
|
if(NOT DEFINED CONFIG_LPC55XXX_SRAM_CLOCKS)
|
|
|
|
zephyr_compile_definitions(DONT_ENABLE_DISABLED_RAMBANKS=1)
|
|
|
|
endif()
|