Skip to content

Commit 732d811

Browse files
roskuttanxiaoxiang781216
authored andcommitted
added cmakelists to tm4c123g-launchpad
1 parent 2a38ce3 commit 732d811

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/tiva/tm4c123g-launchpad/CMakeLists.txt
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
20+
#
21+
# ##############################################################################
22+
23+
add_subdirectory(src)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# ##############################################################################
2+
# boards/arm/tiva/tm4c123g-launchpad/src/CMakeLists.txt
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
7+
# license agreements. See the NOTICE file distributed with this work for
8+
# additional information regarding copyright ownership. The ASF licenses this
9+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
10+
# use this file except in compliance with the License. You may obtain a copy of
11+
# the License at
12+
#
13+
# http://www.apache.org/licenses/LICENSE-2.0
14+
#
15+
# Unless required by applicable law or agreed to in writing, software
16+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
18+
# License for the specific language governing permissions and limitations under
19+
# the License.
20+
#
21+
# ##############################################################################
22+
23+
set(SRCS tm4c_boot.c tm4c_bringup.c)
24+
25+
if(CONFIG_ARCH_LEDS)
26+
list(APPEND SRCS tm4c_autoleds.c)
27+
else()
28+
list(APPEND SRCS tm4c_userleds.c)
29+
endif()
30+
31+
if(CONFIG_ARCH_BUTTONS)
32+
list(APPEND SRCS tm4c_buttons.c)
33+
endif()
34+
35+
if(CONFIG_BOARDCTL)
36+
list(APPEND SRCS tm4c_appinit.c)
37+
endif()
38+
39+
if(CONFIG_TIVA_ADC)
40+
list(APPEND SRCS tm4c_adc.c)
41+
endif()
42+
43+
if(CONFIG_TIVA_AT24)
44+
list(APPEND SRCS tm4c_at24.c)
45+
endif()
46+
47+
if(CONFIG_TIVA_CAN)
48+
list(APPEND SRCS tm4c_can.c)
49+
if(CONFIG_TIVA_MCP2515)
50+
list(APPEND SRCS tm4c_mcp2515.c)
51+
endif()
52+
endif()
53+
54+
if(CONFIG_TIVA_SSI)
55+
list(APPEND SRCS tm4c_ssi.c)
56+
endif()
57+
58+
if(CONFIG_TIVA_TIMER)
59+
list(APPEND SRCS tm4c_timer.c)
60+
endif()
61+
62+
target_sources(board PRIVATE ${SRCS})
63+
64+
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script")

0 commit comments

Comments
 (0)