Skip to content

Commit a169edf

Browse files
authored
Merge pull request #11887 from kyle-cypress/pr/target-p62s1-43438
Add target for CYW9P62S1_43438EVB_01
2 parents 860f18b + 1a0925e commit a169edf

Some content is hidden

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

47 files changed

+18175
-34
lines changed

features/FEATURE_BLE/targets/TARGET_Cypress/COMPONENT_CYW43XXX/firmware/COMPONENT_43438/w_bt_firmware_controller.c

Lines changed: 2142 additions & 0 deletions
Large diffs are not rendered by default.
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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, 3U);
42+
Cy_SysClk_PeriphSetDivider(CY_SYSCLK_DIV_8_BIT, 3U, 255U);
43+
Cy_SysClk_PeriphEnableDivider(CY_SYSCLK_DIV_8_BIT, 3U);
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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 3U
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+
* cfg-backend-cli: 1.2.0.1478
9+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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, 3U);
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*******************************************************************************
2+
* File Name: cycfg_peripherals.h
3+
*
4+
* Description:
5+
* Peripheral Hardware Block configuration
6+
* This file was automatically generated and should not be modified.
7+
* cfg-backend-cli: 1.2.0.1478
8+
* Device Support Library (../../../../output/psoc6/psoc6pdl): 1.4.0.1571
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_PERIPHERALS_H)
28+
#define CYCFG_PERIPHERALS_H
29+
30+
#include "cycfg_notices.h"
31+
#include "cy_sysclk.h"
32+
#include "cy_csd.h"
33+
34+
#if defined(__cplusplus)
35+
extern "C" {
36+
#endif
37+
38+
#define CYBSP_CSD_ENABLED 1U
39+
#define CY_CAPSENSE_CORE 4u
40+
#define CY_CAPSENSE_CPU_CLK 100000000u
41+
#define CY_CAPSENSE_PERI_CLK 100000000u
42+
#define CY_CAPSENSE_VDDA_MV 3300u
43+
#define CY_CAPSENSE_PERI_DIV_TYPE CY_SYSCLK_DIV_8_BIT
44+
#define CY_CAPSENSE_PERI_DIV_INDEX 3u
45+
#define Cmod_PORT GPIO_PRT7
46+
#define CintA_PORT GPIO_PRT7
47+
#define CintB_PORT GPIO_PRT7
48+
#define Button0_Rx0_PORT GPIO_PRT1
49+
#define Button0_Tx_PORT GPIO_PRT8
50+
#define Button1_Rx0_PORT GPIO_PRT1
51+
#define Button1_Tx_PORT GPIO_PRT8
52+
#define LinearSlider0_Sns0_PORT GPIO_PRT8
53+
#define LinearSlider0_Sns1_PORT GPIO_PRT8
54+
#define LinearSlider0_Sns2_PORT GPIO_PRT8
55+
#define LinearSlider0_Sns3_PORT GPIO_PRT8
56+
#define LinearSlider0_Sns4_PORT GPIO_PRT8
57+
#define Cmod_PIN 7u
58+
#define CintA_PIN 1u
59+
#define CintB_PIN 2u
60+
#define Button0_Rx0_PIN 0u
61+
#define Button0_Tx_PIN 1u
62+
#define Button1_Rx0_PIN 0u
63+
#define Button1_Tx_PIN 2u
64+
#define LinearSlider0_Sns0_PIN 3u
65+
#define LinearSlider0_Sns1_PIN 4u
66+
#define LinearSlider0_Sns2_PIN 5u
67+
#define LinearSlider0_Sns3_PIN 6u
68+
#define LinearSlider0_Sns4_PIN 7u
69+
#define Cmod_PORT_NUM 7u
70+
#define CintA_PORT_NUM 7u
71+
#define CintB_PORT_NUM 7u
72+
#define CYBSP_CSD_HW CSD0
73+
#define CYBSP_CSD_IRQ csd_interrupt_IRQn
74+
75+
extern cy_stc_csd_context_t cy_csd_0_context;
76+
77+
void init_cycfg_peripherals(void);
78+
79+
#if defined(__cplusplus)
80+
}
81+
#endif
82+
83+
84+
#endif /* CYCFG_PERIPHERALS_H */

0 commit comments

Comments
 (0)