Skip to content

Commit 98c405a

Browse files
committed
arch/arm/ht32f491x3: add CMake support
Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
1 parent a63d9ad commit 98c405a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ##############################################################################
2+
# arch/arm/src/ht32f491x3/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+
ht32f491x3_start.c
27+
ht32f491x3_irq.c
28+
ht32f491x3_timerisr.c
29+
ht32f491x3_gpio.c
30+
ht32f491x3_lowputc.c
31+
ht32f491x3_serial.c)
32+
33+
if(CONFIG_ARCH_HAVE_CUSTOM_VECTORS)
34+
list(APPEND SRCS arm_vectors.c)
35+
endif()
36+
37+
target_sources(arch PRIVATE ${SRCS})

0 commit comments

Comments
 (0)