Skip to content

Commit bdac29e

Browse files
committed
Add 064B0S2 target BSP files using psoc6pdl 1.6.0.3875
1 parent 683e363 commit bdac29e

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

+13218
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#include "cycfg.h"
30+
31+
void init_cycfg_all(void)
32+
{
33+
init_cycfg_system();
34+
init_cycfg_clocks();
35+
init_cycfg_routing();
36+
init_cycfg_peripherals();
37+
init_cycfg_pins();
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#if !defined(CYCFG_H)
30+
#define CYCFG_H
31+
32+
#if defined(__cplusplus)
33+
extern "C" {
34+
#endif
35+
36+
#include "cycfg_notices.h"
37+
#include "cycfg_system.h"
38+
#include "cycfg_clocks.h"
39+
#include "cycfg_routing.h"
40+
#include "cycfg_peripherals.h"
41+
#include "cycfg_pins.h"
42+
43+
void init_cycfg_all(void);
44+
45+
46+
#if defined(__cplusplus)
47+
}
48+
#endif
49+
50+
51+
#endif /* CYCFG_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#include "cycfg_clocks.h"
30+
31+
#if defined (CY_USING_HAL)
32+
const cyhal_resource_inst_t CYBSP_CSD_CLK_DIV_obj =
33+
{
34+
.type = CYHAL_RSC_CLOCK,
35+
.block_num = CYBSP_CSD_CLK_DIV_HW,
36+
.channel_num = CYBSP_CSD_CLK_DIV_NUM,
37+
};
38+
#endif //defined (CY_USING_HAL)
39+
40+
41+
void init_cycfg_clocks(void)
42+
{
43+
Cy_SysClk_PeriphDisableDivider(CY_SYSCLK_DIV_8_BIT, 0U);
44+
Cy_SysClk_PeriphSetDivider(CY_SYSCLK_DIV_8_BIT, 0U, 0U);
45+
Cy_SysClk_PeriphEnableDivider(CY_SYSCLK_DIV_8_BIT, 0U);
46+
#if defined (CY_USING_HAL)
47+
cyhal_hwmgr_reserve(&CYBSP_CSD_CLK_DIV_obj);
48+
#endif //defined (CY_USING_HAL)
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#if !defined(CYCFG_CLOCKS_H)
30+
#define CYCFG_CLOCKS_H
31+
32+
#include "cycfg_notices.h"
33+
#include "cy_sysclk.h"
34+
#if defined (CY_USING_HAL)
35+
#include "cyhal_hwmgr.h"
36+
#endif //defined (CY_USING_HAL)
37+
38+
#if defined(__cplusplus)
39+
extern "C" {
40+
#endif
41+
42+
#define CYBSP_CSD_CLK_DIV_ENABLED 1U
43+
#define CYBSP_CSD_CLK_DIV_HW CY_SYSCLK_DIV_8_BIT
44+
#define CYBSP_CSD_CLK_DIV_NUM 0U
45+
46+
#if defined (CY_USING_HAL)
47+
extern const cyhal_resource_inst_t CYBSP_CSD_CLK_DIV_obj;
48+
#endif //defined (CY_USING_HAL)
49+
50+
void init_cycfg_clocks(void);
51+
52+
#if defined(__cplusplus)
53+
}
54+
#endif
55+
56+
57+
#endif /* CYCFG_CLOCKS_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
* Tools Package 2.1.0.1260
9+
* psoc6pdl 1.6.0.3875
10+
* personalities_2.0 2.0.0.0
11+
* udd 1.2.0.300
12+
*
13+
********************************************************************************
14+
* Copyright 2020 Cypress Semiconductor Corporation
15+
* SPDX-License-Identifier: Apache-2.0
16+
*
17+
* Licensed under the Apache License, Version 2.0 (the "License");
18+
* you may not use this file except in compliance with the License.
19+
* You may obtain a copy of the License at
20+
*
21+
* http://www.apache.org/licenses/LICENSE-2.0
22+
*
23+
* Unless required by applicable law or agreed to in writing, software
24+
* distributed under the License is distributed on an "AS IS" BASIS,
25+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
* See the License for the specific language governing permissions and
27+
* limitations under the License.
28+
********************************************************************************/
29+
30+
#if !defined(CYCFG_NOTICES_H)
31+
#define CYCFG_NOTICES_H
32+
33+
34+
#endif /* CYCFG_NOTICES_H */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#include "cycfg_peripherals.h"
30+
31+
cy_stc_csd_context_t cy_csd_0_context =
32+
{
33+
.lockKey = CY_CSD_NONE_KEY,
34+
};
35+
36+
37+
void init_cycfg_peripherals(void)
38+
{
39+
Cy_SysClk_PeriphAssignDivider(PCLK_CSD_CLOCK, CY_SYSCLK_DIV_8_BIT, 0U);
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
* Tools Package 2.1.0.1260
8+
* psoc6pdl 1.6.0.3875
9+
* personalities_2.0 2.0.0.0
10+
* udd 1.2.0.300
11+
*
12+
********************************************************************************
13+
* Copyright 2020 Cypress Semiconductor Corporation
14+
* SPDX-License-Identifier: Apache-2.0
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
********************************************************************************/
28+
29+
#if !defined(CYCFG_PERIPHERALS_H)
30+
#define CYCFG_PERIPHERALS_H
31+
32+
#include "cycfg_notices.h"
33+
#include "cy_sysclk.h"
34+
#include "cy_csd.h"
35+
36+
#if defined(__cplusplus)
37+
extern "C" {
38+
#endif
39+
40+
#define CYBSP_CSD_ENABLED 1U
41+
#define CY_CAPSENSE_CORE 4u
42+
#define CY_CAPSENSE_CPU_CLK 100000000u
43+
#define CY_CAPSENSE_PERI_CLK 50000000u
44+
#define CY_CAPSENSE_VDDA_MV 3300u
45+
#define CY_CAPSENSE_PERI_DIV_TYPE CY_SYSCLK_DIV_8_BIT
46+
#define CY_CAPSENSE_PERI_DIV_INDEX 0u
47+
#define Cmod_PORT GPIO_PRT7
48+
#define CintA_PORT GPIO_PRT7
49+
#define CintB_PORT GPIO_PRT7
50+
#define Button0_Rx0_PORT GPIO_PRT1
51+
#define Button0_Tx_PORT GPIO_PRT8
52+
#define Button1_Rx0_PORT GPIO_PRT1
53+
#define Button1_Tx_PORT GPIO_PRT8
54+
#define LinearSlider0_Sns0_PORT GPIO_PRT8
55+
#define LinearSlider0_Sns1_PORT GPIO_PRT8
56+
#define LinearSlider0_Sns2_PORT GPIO_PRT8
57+
#define LinearSlider0_Sns3_PORT GPIO_PRT8
58+
#define LinearSlider0_Sns4_PORT GPIO_PRT8
59+
#define Cmod_PIN 7u
60+
#define CintA_PIN 1u
61+
#define CintB_PIN 2u
62+
#define Button0_Rx0_PIN 0u
63+
#define Button0_Tx_PIN 1u
64+
#define Button1_Rx0_PIN 0u
65+
#define Button1_Tx_PIN 2u
66+
#define LinearSlider0_Sns0_PIN 3u
67+
#define LinearSlider0_Sns1_PIN 4u
68+
#define LinearSlider0_Sns2_PIN 5u
69+
#define LinearSlider0_Sns3_PIN 6u
70+
#define LinearSlider0_Sns4_PIN 7u
71+
#define Cmod_PORT_NUM 7u
72+
#define CintA_PORT_NUM 7u
73+
#define CintB_PORT_NUM 7u
74+
#define CYBSP_CSD_HW CSD0
75+
#define CYBSP_CSD_IRQ csd_interrupt_IRQn
76+
77+
extern cy_stc_csd_context_t cy_csd_0_context;
78+
79+
void init_cycfg_peripherals(void);
80+
81+
#if defined(__cplusplus)
82+
}
83+
#endif
84+
85+
86+
#endif /* CYCFG_PERIPHERALS_H */

0 commit comments

Comments
 (0)