Skip to content

Commit d6a5d71

Browse files
simbit18linguini1
authored andcommitted
boards/arm/lpc43xx: CMake added boards
CMake added boards: - bambino-200e - lpc4330-xplorer - lpc4337-ws - lpc4357-evb - lpc4370-link2 Signed-off-by: simbit18 <simbit18@gmail.com>
1 parent 09b0a83 commit d6a5d71

10 files changed

Lines changed: 422 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/bambino-200e/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)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/bambino-200e/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 lpc43_boot.c lpc43_ssp.c)
24+
25+
if(CONFIG_SENSORS_MAX31855)
26+
list(APPEND SRCS lpc43_max31855.c)
27+
endif()
28+
29+
if(CONFIG_BOARDCTL)
30+
list(APPEND SRCS lpc43_appinit.c)
31+
endif()
32+
33+
if(CONFIG_ARCH_LEDS)
34+
list(APPEND SRCS lpc43_autoleds.c)
35+
else()
36+
list(APPEND SRCS lpc43_userleds.c)
37+
endif()
38+
39+
if(CONFIG_ARCH_BUTTONS)
40+
list(APPEND SRCS lpc43_buttons.c)
41+
endif()
42+
43+
if(CONFIG_TIMER)
44+
list(APPEND SRCS lpc43_timer.c)
45+
endif()
46+
47+
if(CONFIG_USBMSC)
48+
list(APPEND SRCS lpc43_usbmsc.c)
49+
endif()
50+
51+
target_sources(board PRIVATE ${SRCS})
52+
53+
if(CONFIG_LPC43_BOOT_SRAM)
54+
set(LDFILE ramconfig.ld)
55+
endif()
56+
if(CONFIG_LPC43_BOOT_SPIFI)
57+
set(LDFILE spificonfig.ld)
58+
endif()
59+
if(CONFIG_LPC43_BOOT_FLASHA)
60+
set(LDFILE flashaconfig.ld)
61+
endif()
62+
if(CONFIG_LPC43_BOOT_FLASHB)
63+
set(LDFILE flashaconfig.ld)
64+
endif()
65+
if(CONFIG_LPC43_BOOT_CS0FLASH)
66+
set(LDFILE cs0flash.ld)
67+
endif()
68+
69+
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/${LDFILE}")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4330-xplorer/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)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4330-xplorer/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 lpc43_boot.c)
24+
25+
if(CONFIG_BOARDCTL)
26+
list(APPEND SRCS lpc43_appinit.c)
27+
endif()
28+
29+
if(CONFIG_ARCH_LEDS)
30+
list(APPEND SRCS lpc43_autoleds.c)
31+
else()
32+
list(APPEND SRCS lpc43_userleds.c)
33+
endif()
34+
35+
if(CONFIG_ARCH_BUTTONS)
36+
list(APPEND SRCS lpc43_buttons.c)
37+
endif()
38+
39+
if(CONFIG_USBMSC)
40+
list(APPEND SRCS lpc43_usbmsc.c)
41+
endif()
42+
43+
target_sources(board PRIVATE ${SRCS})
44+
45+
if(CONFIG_LPC43_BOOT_SRAM)
46+
set(LDFILE ramconfig.ld)
47+
endif()
48+
if(CONFIG_LPC43_BOOT_SPIFI)
49+
set(LDFILE spificonfig.ld)
50+
endif()
51+
if(CONFIG_LPC43_BOOT_FLASHA)
52+
set(LDFILE flashaconfig.ld)
53+
endif()
54+
if(CONFIG_LPC43_BOOT_FLASHB)
55+
set(LDFILE flashaconfig.ld)
56+
endif()
57+
if(CONFIG_LPC43_BOOT_CS0FLASH)
58+
set(LDFILE cs0flash.ld)
59+
endif()
60+
61+
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/${LDFILE}")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4337-ws/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)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4337-ws/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 lpc43_boot.c)
24+
25+
if(CONFIG_BOARDCTL)
26+
list(APPEND SRCS lpc43_appinit.c)
27+
endif()
28+
29+
if(CONFIG_LPC43_ADC0)
30+
list(APPEND SRCS lpc43_adc.c)
31+
endif()
32+
33+
target_sources(board PRIVATE ${SRCS})
34+
35+
if(CONFIG_LPC43_BOOT_SRAM)
36+
set(LDFILE ramconfig.ld)
37+
endif()
38+
if(CONFIG_LPC43_BOOT_SPIFI)
39+
set(LDFILE spificonfig.ld)
40+
endif()
41+
if(CONFIG_LPC43_BOOT_FLASHA)
42+
set(LDFILE flashaconfig.ld)
43+
endif()
44+
if(CONFIG_LPC43_BOOT_FLASHB)
45+
set(LDFILE flashaconfig.ld)
46+
endif()
47+
if(CONFIG_LPC43_BOOT_CS0FLASH)
48+
set(LDFILE cs0flash.ld)
49+
endif()
50+
51+
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/${LDFILE}")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4357-evb/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)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4357-evb/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 lpc43_boot.c)
24+
25+
if(CONFIG_BOARDCTL)
26+
list(APPEND SRCS lpc43_appinit.c)
27+
endif()
28+
29+
if(CONFIG_ARCH_LEDS)
30+
list(APPEND SRCS lpc43_autoleds.c)
31+
else()
32+
list(APPEND SRCS lpc43_userleds.c)
33+
endif()
34+
35+
if(CONFIG_ARCH_BUTTONS)
36+
list(APPEND SRCS lpc43_buttons.c)
37+
endif()
38+
39+
if(CONFIG_USBMSC)
40+
list(APPEND SRCS lpc43_usbmsc.c)
41+
endif()
42+
43+
target_sources(board PRIVATE ${SRCS})
44+
45+
if(CONFIG_LPC43_BOOT_SRAM)
46+
set(LDFILE ramconfig.ld)
47+
endif()
48+
if(CONFIG_LPC43_BOOT_SPIFI)
49+
set(LDFILE spificonfig.ld)
50+
endif()
51+
if(CONFIG_LPC43_BOOT_FLASHA)
52+
set(LDFILE flashaconfig.ld)
53+
endif()
54+
if(CONFIG_LPC43_BOOT_FLASHB)
55+
set(LDFILE flashaconfig.ld)
56+
endif()
57+
if(CONFIG_LPC43_BOOT_CS0FLASH)
58+
set(LDFILE cs0flash.ld)
59+
endif()
60+
61+
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/${LDFILE}")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ##############################################################################
2+
# boards/arm/lpc43xx/lpc4370-link2/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)

0 commit comments

Comments
 (0)