-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: arm: Introduce cy8cproto_062_4343w board
Add initial version of cy8cproto_062_4343w board. Signed-off-by: Nazar Palamar <nazar.palamar@infineon.com>
- Loading branch information
Showing
45 changed files
with
11,602 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Copyright (c) 2021 Cypress Semiconductor Corporation. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
zephyr_include_directories(bsp/) | ||
zephyr_include_directories(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/) | ||
|
||
zephyr_library() | ||
zephyr_library_sources(board.c) | ||
zephyr_library_sources(bsp/cybsp.c) | ||
zephyr_library_sources(bsp/system_psoc6_cm4.c) | ||
|
||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_clocks.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_peripherals.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_pins.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_qspi_memslot.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_routing.c) | ||
zephyr_library_sources(bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_system.c) | ||
|
||
zephyr_compile_definitions(CY_USING_HAL) | ||
zephyr_compile_definitions(COMPONENT_BSP_DESIGN_MODUS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# CY8CPROTO-062-4343W PSoC™ 6 Wi-Fi BT Prototyping Kit | ||
|
||
# Copyright (c) 2021 Cypress Semiconductor Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_CY8CPROTO_062_4343W | ||
bool "CY8CPROTO-062-4343W PSoC™ 6 Wi-Fi BT Prototyping Kit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CY8CPROTO-062-4343W PSoC™ 6 Wi-Fi BT Prototyping Kit configuration | ||
|
||
# Copyright (c) 2021 Cypress Semiconductor Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if BOARD_CY8CPROTO_062_4343W | ||
|
||
config BOARD | ||
default "cy8cproto_062_4343w" | ||
|
||
endif # BOARD_CY8CPROTO_062_4343W |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2021 Cypress Semiconductor Corporation. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#include <zephyr.h> | ||
#include <cybsp.h> | ||
#include <sys/__assert.h> | ||
#include <init.h> | ||
|
||
|
||
|
||
static int board_init(const struct device *dev) | ||
{ | ||
cy_rslt_t result; | ||
|
||
/* Initializes the board support package */ | ||
result = cybsp_init(); | ||
|
||
__ASSERT(result == CY_RSLT_SUCCESS, | ||
"cybsp_init failed [error %d]", result); | ||
|
||
return ((result == CY_RSLT_SUCCESS) ? 0 : -1); | ||
} | ||
|
||
SYS_INIT(board_init, PRE_KERNEL_1, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2021 Cypress Semiconductor Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) | ||
|
39 changes: 39 additions & 0 deletions
39
boards/arm/cy8cproto_062_4343w/bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* File Name: cycfg.c | ||
* | ||
* Description: | ||
* Wrapper function to initialize all generated code. | ||
* This file was automatically generated and should not be modified. | ||
* Tools Package 2.4.0.5721 | ||
* mtb-pdl-cat1 3.0.0.10651 | ||
* personalities 5.0.0.0 | ||
* udd 3.0.0.1377 | ||
* | ||
******************************************************************************** | ||
* Copyright 2021 Cypress Semiconductor Corporation (an Infineon company) or | ||
* an affiliate of Cypress Semiconductor Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
|
||
#include "cycfg.h" | ||
|
||
void init_cycfg_all(void) | ||
{ | ||
init_cycfg_system(); | ||
init_cycfg_clocks(); | ||
init_cycfg_routing(); | ||
init_cycfg_peripherals(); | ||
init_cycfg_pins(); | ||
} |
53 changes: 53 additions & 0 deletions
53
boards/arm/cy8cproto_062_4343w/bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/******************************************************************************* | ||
* File Name: cycfg.h | ||
* | ||
* Description: | ||
* Simple wrapper header containing all generated files. | ||
* This file was automatically generated and should not be modified. | ||
* Tools Package 2.4.0.5721 | ||
* mtb-pdl-cat1 3.0.0.10651 | ||
* personalities 5.0.0.0 | ||
* udd 3.0.0.1377 | ||
* | ||
******************************************************************************** | ||
* Copyright 2021 Cypress Semiconductor Corporation (an Infineon company) or | ||
* an affiliate of Cypress Semiconductor Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
|
||
#if !defined(CYCFG_H) | ||
#define CYCFG_H | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
#include "cycfg_notices.h" | ||
#include "cycfg_system.h" | ||
#include "cycfg_connectivity_bt.h" | ||
#include "cycfg_clocks.h" | ||
#include "cycfg_routing.h" | ||
#include "cycfg_peripherals.h" | ||
#include "cycfg_pins.h" | ||
|
||
void init_cycfg_all(void); | ||
|
||
|
||
#if defined(__cplusplus) | ||
} | ||
#endif | ||
|
||
|
||
#endif /* CYCFG_H */ |
29 changes: 29 additions & 0 deletions
29
...ds/arm/cy8cproto_062_4343w/bsp/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************* | ||
* File Name: cycfg.timestamp | ||
* | ||
* Description: | ||
* Sentinel file for determining if generated source is up to date. | ||
* This file was automatically generated and should not be modified. | ||
* Tools Package 2.4.0.5721 | ||
* mtb-pdl-cat1 3.0.0.10651 | ||
* personalities 5.0.0.0 | ||
* udd 3.0.0.1377 | ||
* | ||
******************************************************************************** | ||
* Copyright 2021 Cypress Semiconductor Corporation (an Infineon company) or | ||
* an affiliate of Cypress Semiconductor Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
|
Oops, something went wrong.