Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions arch/arm/src/lpc54xx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# ##############################################################################
# arch/arm/src/lpc54xx/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################

set(SRCS
lpc54_start.c
lpc54_clockconfig.c
lpc54_irq.c
lpc54_clrpend.c
lpc54_allocateheap.c
lpc54_lowputc.c
lpc54_gpio.c
lpc54_reset.c)

if(NOT CONFIG_SCHED_TICKLESS)
list(APPEND SRCS lpc54_timerisr.c)
else()
list(APPEND SRCS lpc54_tickless.c)
endif()

if(CONFIG_BUILD_PROTECTED)
list(APPEND SRCS lpc54_userspace.c lpc54_mpuinit.c)
endif()

if(CONFIG_LPC54_DMA)
list(APPEND SRCS lpc54_dma.c)
endif()

if(NOT CONFIG_ARCH_IDLE_CUSTOM)
list(APPEND SRCS lpc54_idle.c)
endif()

if(CONFIG_LPC54_GPIOIRQ)
list(APPEND SRCS lpc54_gpioirq.c)
endif()

if(CONFIG_RTC)
list(APPEND SRCS lpc54_rtc.c)
if(CONFIG_RTC_DRIVER)
list(APPEND SRCS lpc54_rtc_lowerhalf.c)
endif()
endif()

if(CONFIG_LPC54_WWDT)
list(APPEND SRCS lpc54_wwdt.c)
endif()

if(CONFIG_LPC54_RNG)
list(APPEND SRCS lpc54_rng.c)
endif()

if(CONFIG_LPC54_HAVE_USART)
list(APPEND SRCS lpc54_serial.c)
endif()

if(CONFIG_LPC54_HAVE_I2C_MASTER)
list(APPEND SRCS lpc54_i2c_master.c)
endif()

if(CONFIG_LPC54_HAVE_SPI_MASTER)
list(APPEND SRCS lpc54_spi_master.c)
endif()

if(CONFIG_LPC54_EMC)
list(APPEND SRCS lpc54_emc.c)
endif()

if(CONFIG_LPC54_ETHERNET)
list(APPEND SRCS lpc54_ethernet.c)
endif()

if(CONFIG_LPC54_LCD)
list(APPEND SRCS lpc54_lcd.c)
endif()

if(CONFIG_LPC54_SDMMC)
list(APPEND SRCS lpc54_sdmmc.c)
endif()

target_sources(arch PRIVATE ${SRCS})
23 changes: 23 additions & 0 deletions boards/arm/lpc54xx/lpcxpresso-lpc54628/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ##############################################################################
# boards/arm/lpc54xx/lpcxpresso-lpc54628/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################

add_subdirectory(src)
57 changes: 57 additions & 0 deletions boards/arm/lpc54xx/lpcxpresso-lpc54628/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# ##############################################################################
# boards/arm/lpc54xx/lpcxpresso-lpc54628/src/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################

set(SRCS lpc54_boot.c lpc54_bringup.c lpc54_userleds.c lpc54_lcd.c)

if(CONFIG_ARCH_LEDS)
list(APPEND SRCS lpc54_autoleds.c)
endif()

if(CONFIG_ARCH_BUTTONS)
list(APPEND SRCS lpc54_buttons.c)
endif()

if(CONFIG_BOARDCTL)
list(APPEND SRCS lpc54_appinit.c)
endif()

if(CONFIG_LPC54_HAVE_I2C_MASTER)
list(APPEND SRCS lpc54_i2c.c)
endif()

if(CONFIG_SYSTEM_I2CTOOL)
list(APPEND SRCS lpc54_i2ctool.c)
endif()

if(CONFIG_INPUT_FT5X06)
list(APPEND SRCS lpc54_ft5x06.c)
endif()

if(CONFIG_LPC54_EMC)
if(CONFIG_LPC54_EMC_DYNAMIC)
list(APPEND SRCS lpc54_sdram.c)
endif()
endif()

target_sources(board PRIVATE ${SRCS})

set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
Loading