added cmakelists to tm4c123g-launchpad

This commit is contained in:
Angelo Rison K
2025-04-14 13:15:53 +00:00
committed by Xiang Xiao
parent 2a38ce37d7
commit 732d811ea9
2 changed files with 87 additions and 0 deletions
@@ -0,0 +1,23 @@
# ##############################################################################
# boards/arm/tiva/tm4c123g-launchpad/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)
@@ -0,0 +1,64 @@
# ##############################################################################
# boards/arm/tiva/tm4c123g-launchpad/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 tm4c_boot.c tm4c_bringup.c)
if(CONFIG_ARCH_LEDS)
list(APPEND SRCS tm4c_autoleds.c)
else()
list(APPEND SRCS tm4c_userleds.c)
endif()
if(CONFIG_ARCH_BUTTONS)
list(APPEND SRCS tm4c_buttons.c)
endif()
if(CONFIG_BOARDCTL)
list(APPEND SRCS tm4c_appinit.c)
endif()
if(CONFIG_TIVA_ADC)
list(APPEND SRCS tm4c_adc.c)
endif()
if(CONFIG_TIVA_AT24)
list(APPEND SRCS tm4c_at24.c)
endif()
if(CONFIG_TIVA_CAN)
list(APPEND SRCS tm4c_can.c)
if(CONFIG_TIVA_MCP2515)
list(APPEND SRCS tm4c_mcp2515.c)
endif()
endif()
if(CONFIG_TIVA_SSI)
list(APPEND SRCS tm4c_ssi.c)
endif()
if(CONFIG_TIVA_TIMER)
list(APPEND SRCS tm4c_timer.c)
endif()
target_sources(board PRIVATE ${SRCS})
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script")