Skip to content

Commit bbe1d42

Browse files
simbit18linguini1
authored andcommitted
arch/risc-v/rp23xx-rv: CMake build implemented for Raspberry Pi RP2350 RISCV
- added Raspberry Pi RP2350 RISCV (Hazard3 RISC-V cores) Signed-off-by: simbit18 <[email protected]>
1 parent fc536ba commit bbe1d42

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# ##############################################################################
2+
# arch/risc-v/src/rp23xx-rv/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+
# Specify our HEAD assembly file. This will be linked as the first object file,
24+
# so it will appear at address 0
25+
set(SRCS rp23xx_head.S)
26+
27+
list(
28+
APPEND
29+
SRCS
30+
rp23xx_idle.c
31+
rp23xx_irq.c
32+
rp23xx_irq_dispatch.c
33+
rp23xx_uart.c
34+
rp23xx_serial.c
35+
rp23xx_start.c
36+
rp23xx_timerisr.c
37+
rp23xx_gpio.c
38+
rp23xx_pio.c
39+
rp23xx_clock.c
40+
rp23xx_xosc.c
41+
rp23xx_pll.c)
42+
43+
if(CONFIG_SMP)
44+
list(APPEND SRCS rp23xx_cpustart.c rp23xx_smpcall.c rp23xx_cpuidlestack.c)
45+
endif()
46+
47+
if(CONFIG_RP23XX_RV_DMAC)
48+
list(APPEND SRCS rp23xx_dmac.c)
49+
endif()
50+
51+
if(CONFIG_RP23XX_RV_SPI)
52+
list(APPEND SRCS rp23xx_spi.c)
53+
endif()
54+
55+
if(CONFIG_RP23XX_RV_PWM)
56+
list(APPEND SRCS rp23xx_pwm.c)
57+
endif()
58+
59+
if(CONFIG_RP23XX_RV_I2C)
60+
list(APPEND SRCS rp23xx_i2c.c)
61+
endif()
62+
63+
if(CONFIG_RP23XX_RV_I2C_SLAVE)
64+
list(APPEND SRCS rp23xx_i2c_slave.c)
65+
endif()
66+
67+
if(CONFIG_RP23XX_RV_I2S)
68+
list(APPEND SRCS rp23xx_i2s.c)
69+
list(APPEND SRCS rp23xx_i2s_pio.c)
70+
endif()
71+
72+
if(CONFIG_USBDEV)
73+
list(APPEND SRCS rp23xx_usbdev.c)
74+
endif()
75+
76+
if(CONFIG_WS2812)
77+
list(APPEND SRCS rp23xx_ws2812.c)
78+
endif()
79+
80+
if(CONFIG_ADC)
81+
list(APPEND SRCS rp23xx_adc.c)
82+
endif()
83+
84+
if(CONFIG_WATCHDOG)
85+
list(APPEND SRCS rp23xx_wdt.c)
86+
endif()
87+
88+
target_sources(arch PRIVATE ${SRCS})
89+
target_compile_options(arch PRIVATE -Wno-array-bounds)

0 commit comments

Comments
 (0)