Skip to content

Commit aec6303

Browse files
authored
Merge pull request #12787 from kyle-cypress/pr/cyeskit-064b0s2-4343w
Cypress: Add CYESKIT-064B0S2-4343W
2 parents bb6345e + b77a5b3 commit aec6303

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11754
-0
lines changed

TESTS/mbed_hal/qspi/flash_configs/flash_configs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
defined(TARGET_CY8CKIT_062S2_43012) || \
7171
defined(TARGET_CY8CKIT_062S2_4343W) || \
7272
defined(TARGET_CY8CKIT_064S2_4343W) || \
73+
defined(TARGET_CYESKIT_064B0S2_4343W) || \
7374
defined(TARGET_CY8CPROTO_062_4343W) || \
7475
defined(TARGET_CY8CPROTO_062S2_43012) || \
7576
defined(TARGET_CY8CPROTO_062S3_4343W) || \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Copyright (c) 2019, Cypress Semiconductor Corporation, All Rights Reserved
3+
* SPDX-License-Identifier: LicenseRef-PBL
4+
*
5+
* This file and the related binary are licensed under the
6+
* Permissive Binary License, Version 1.0 (the "License");
7+
* you may not use these files except in compliance with the License.
8+
*
9+
* You may obtain a copy of the License here:
10+
* LICENSE-permissive-binary-license-1.0.txt and at
11+
* https://www.mbed.com/licenses/PBL-1.0
12+
*
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef INCLUDED_NVRAM_IMAGE_H_
18+
#define INCLUDED_NVRAM_IMAGE_H_
19+
20+
#include <string.h>
21+
#include <stdint.h>
22+
#include "generated_mac_address.txt"
23+
24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
27+
28+
/**
29+
* Character array of NVRAM image
30+
* Generated from cyw9cy8cmod-064b0s2-4343w_P100_724315.txt
31+
*/
32+
33+
static const char wifi_nvram_image[] =
34+
"NVRAMRev=$Rev: 724315 $" "\x00"
35+
"manfid=0x2d0" "\x00"
36+
"prodid=0x087d" "\x00"
37+
"vendid=0x14e4" "\x00"
38+
"devid=0x43e2" "\x00"
39+
"boardtype=0x087d" "\x00"
40+
"boardrev=0x1100" "\x00"
41+
"boardnum=22" "\x00"
42+
NVRAM_GENERATED_MAC_ADDRESS "\x00"
43+
"sromrev=11" "\x00"
44+
"boardflags=0x00404201" "\x00"
45+
"boardflags3=0x08000000" "\x00"
46+
"xtalfreq=37400" "\x00"
47+
"nocrc=1" "\x00"
48+
"ag0=255" "\x00"
49+
"aa2g=1" "\x00"
50+
"ccode=ALL" "\x00"
51+
"" "\x00"
52+
"swdiv_en=1" "\x00"
53+
"swdiv_gpio=2" "\x00"
54+
"" "\x00"
55+
"pa0itssit=0x20" "\x00"
56+
"extpagain2g=0" "\x00"
57+
"" "\x00"
58+
"pa2ga0=-168,6393,-757" "\x00"
59+
"AvVmid_c0=0x0,0xc8" "\x00"
60+
"AvVmidIQcal=0x2,0xa8" "\x00"
61+
"cckpwroffset0=5" "\x00"
62+
"" "\x00"
63+
"maxp2ga0=84" "\x00"
64+
"txpwrbckof=6" "\x00"
65+
"cckbw202gpo=0" "\x00"
66+
"legofdmbw202gpo=0x66111111" "\x00"
67+
"mcsbw202gpo=0x77711111" "\x00"
68+
"propbw202gpo=0xdd" "\x00"
69+
"" "\x00"
70+
"ofdmdigfilttype=18" "\x00"
71+
"ofdmdigfilttypebe=18" "\x00"
72+
"papdmode=1" "\x00"
73+
"papdvalidtest=1" "\x00"
74+
"pacalidx2g=32" "\x00"
75+
"papdepsoffset=-36" "\x00"
76+
"papdendidx=61" "\x00"
77+
"" "\x00"
78+
"" "\x00"
79+
"wl0id=0x431b" "\x00"
80+
"" "\x00"
81+
"deadman_to=0xffffffff" "\x00"
82+
"muxenab=0x11" "\x00"
83+
"" "\x00"
84+
"spurconfig=0x3 " "\x00"
85+
"" "\x00"
86+
"rssicorrnorm=1" "\x00"
87+
"\x00\x00";
88+
#ifdef __cplusplus
89+
} /*extern "C" */
90+
#endif
91+
92+
#else /* ifndef INCLUDED_NVRAM_IMAGE_H_ */
93+
94+
#error Wi-Fi NVRAM image included twice
95+
96+
#endif /* ifndef INCLUDED_NVRAM_IMAGE_H_ */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*******************************************************************************
2+
* File Name: cycfg.c
3+
*
4+
* Description:
5+
* Wrapper function to initialize all generated code.
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
27+
#include "cycfg.h"
28+
29+
void init_cycfg_all(void)
30+
{
31+
init_cycfg_system();
32+
init_cycfg_clocks();
33+
init_cycfg_routing();
34+
init_cycfg_peripherals();
35+
init_cycfg_pins();
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*******************************************************************************
2+
* File Name: cycfg.h
3+
*
4+
* Description:
5+
* Simple wrapper header containing all generated files.
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
27+
#if !defined(CYCFG_H)
28+
#define CYCFG_H
29+
30+
#if defined(__cplusplus)
31+
extern "C" {
32+
#endif
33+
34+
#include "cycfg_notices.h"
35+
#include "cycfg_system.h"
36+
#include "cycfg_clocks.h"
37+
#include "cycfg_routing.h"
38+
#include "cycfg_peripherals.h"
39+
#include "cycfg_pins.h"
40+
41+
void init_cycfg_all(void);
42+
43+
44+
#if defined(__cplusplus)
45+
}
46+
#endif
47+
48+
49+
#endif /* CYCFG_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*******************************************************************************
2+
* File Name: cycfg.timestamp
3+
*
4+
* Description:
5+
* Sentinel file for determining if generated source is up to date.
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*******************************************************************************
2+
* File Name: cycfg_clocks.c
3+
*
4+
* Description:
5+
* Clock configuration
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
27+
#include "cycfg_clocks.h"
28+
29+
#if defined (CY_USING_HAL)
30+
const cyhal_resource_inst_t CYBSP_CSD_CLK_DIV_obj =
31+
{
32+
.type = CYHAL_RSC_CLOCK,
33+
.block_num = CYBSP_CSD_CLK_DIV_HW,
34+
.channel_num = CYBSP_CSD_CLK_DIV_NUM,
35+
};
36+
#endif //defined (CY_USING_HAL)
37+
38+
39+
void init_cycfg_clocks(void)
40+
{
41+
Cy_SysClk_PeriphDisableDivider(CY_SYSCLK_DIV_8_BIT, 0U);
42+
Cy_SysClk_PeriphSetDivider(CY_SYSCLK_DIV_8_BIT, 0U, 0U);
43+
Cy_SysClk_PeriphEnableDivider(CY_SYSCLK_DIV_8_BIT, 0U);
44+
#if defined (CY_USING_HAL)
45+
cyhal_hwmgr_reserve(&CYBSP_CSD_CLK_DIV_obj);
46+
#endif //defined (CY_USING_HAL)
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*******************************************************************************
2+
* File Name: cycfg_clocks.h
3+
*
4+
* Description:
5+
* Clock configuration
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
27+
#if !defined(CYCFG_CLOCKS_H)
28+
#define CYCFG_CLOCKS_H
29+
30+
#include "cycfg_notices.h"
31+
#include "cy_sysclk.h"
32+
#if defined (CY_USING_HAL)
33+
#include "cyhal_hwmgr.h"
34+
#endif //defined (CY_USING_HAL)
35+
36+
#if defined(__cplusplus)
37+
extern "C" {
38+
#endif
39+
40+
#define CYBSP_CSD_CLK_DIV_ENABLED 1U
41+
#define CYBSP_CSD_CLK_DIV_HW CY_SYSCLK_DIV_8_BIT
42+
#define CYBSP_CSD_CLK_DIV_NUM 0U
43+
44+
#if defined (CY_USING_HAL)
45+
extern const cyhal_resource_inst_t CYBSP_CSD_CLK_DIV_obj;
46+
#endif //defined (CY_USING_HAL)
47+
48+
void init_cycfg_clocks(void);
49+
50+
#if defined(__cplusplus)
51+
}
52+
#endif
53+
54+
55+
#endif /* CYCFG_CLOCKS_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*******************************************************************************
2+
* File Name: cycfg_notices.h
3+
*
4+
* Description:
5+
* Contains warnings and errors that occurred while generating code for the
6+
* design.
7+
* This file was automatically generated and should not be modified.
8+
* Device Configurator: 2.0.0.1483
9+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
10+
*
11+
********************************************************************************
12+
* Copyright 2017-2019 Cypress Semiconductor Corporation
13+
* SPDX-License-Identifier: Apache-2.0
14+
*
15+
* Licensed under the Apache License, Version 2.0 (the "License");
16+
* you may not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
*
19+
* http://www.apache.org/licenses/LICENSE-2.0
20+
*
21+
* Unless required by applicable law or agreed to in writing, software
22+
* distributed under the License is distributed on an "AS IS" BASIS,
23+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+
* See the License for the specific language governing permissions and
25+
* limitations under the License.
26+
********************************************************************************/
27+
28+
#if !defined(CYCFG_NOTICES_H)
29+
#define CYCFG_NOTICES_H
30+
31+
32+
#endif /* CYCFG_NOTICES_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*******************************************************************************
2+
* File Name: cycfg_peripherals.c
3+
*
4+
* Description:
5+
* Peripheral Hardware Block configuration
6+
* This file was automatically generated and should not be modified.
7+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.4.1.2240
9+
*
10+
********************************************************************************
11+
* Copyright 2017-2019 Cypress Semiconductor Corporation
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
********************************************************************************/
26+
27+
#include "cycfg_peripherals.h"
28+
29+
cy_stc_csd_context_t cy_csd_0_context =
30+
{
31+
.lockKey = CY_CSD_NONE_KEY,
32+
};
33+
34+
35+
void init_cycfg_peripherals(void)
36+
{
37+
Cy_SysClk_PeriphAssignDivider(PCLK_CSD_CLOCK, CY_SYSCLK_DIV_8_BIT, 0U);
38+
}

0 commit comments

Comments
 (0)