Skip to content

Commit 0af5318

Browse files
simbit18xiaoxiang781216
authored andcommitted
arch/arm/src/kl: CMake build implemented for NXP KL Series Arm MCUs
- added NXP KL Series Arm MCUs Signed-off-by: simbit18 <simbit18@gmail.com>
1 parent f90dcde commit 0af5318

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

arch/arm/src/kl/CMakeLists.txt

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# ##############################################################################
2+
# arch/arm/src/kl/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+
list(
24+
APPEND
25+
SRCS
26+
kl_clockconfig.c
27+
kl_gpio.c
28+
kl_irq.c
29+
kl_lowputc.c
30+
kl_serial.c
31+
kl_start.c
32+
kl_cfmconfig.c)
33+
34+
# Configuration-dependent Kinetis L files
35+
36+
if(NOT CONFIG_ARCH_IDLE_CUSTOM)
37+
list(APPEND SRCS kl_idle.c)
38+
endif()
39+
40+
if(NOT CONFIG_SCHED_TICKLESS)
41+
list(APPEND SRCS kl_timerisr.c)
42+
endif()
43+
44+
if(CONFIG_BUILD_PROTECTED)
45+
list(APPEND SRCS kl_userspace.c)
46+
endif()
47+
48+
if(CONFIG_KL_GPIOIRQ)
49+
list(APPEND SRCS kl_gpioirq.c)
50+
endif()
51+
52+
if(CONFIG_ARCH_IRQPRIO)
53+
list(APPEND SRCS kl_irqprio.c)
54+
endif()
55+
56+
if(CONFIG_KL_SPI0)
57+
list(APPEND SRCS kl_spi.c)
58+
else()
59+
if(CONFIG_KL_SPI1)
60+
list(APPEND SRCS kl_spi.c)
61+
endif()
62+
endif()
63+
64+
if(CONFIG_PWM)
65+
list(APPEND SRCS kl_pwm.c)
66+
endif()
67+
68+
if(CONFIG_DEBUG_FEATURES)
69+
list(APPEND SRCS kl_dumpgpio.c)
70+
endif()
71+
72+
target_sources(arch PRIVATE ${SRCS})

0 commit comments

Comments
 (0)