Skip to content

Commit 2148fa5

Browse files
Update CYSBSYSKIT_01 BSP
1 parent a79d3ce commit 2148fa5

File tree

16 files changed

+1331
-303
lines changed

16 files changed

+1331
-303
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
void init_cycfg_all(void)
3030
{
31-
init_cycfg_routing();
32-
init_cycfg_pins();
31+
init_cycfg_system();
32+
init_cycfg_routing();
33+
init_cycfg_peripherals();
34+
init_cycfg_pins();
3335
}

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ extern "C" {
3434
#include "cycfg_notices.h"
3535
#include "cycfg_system.h"
3636
#include "cycfg_routing.h"
37+
#include "cycfg_peripherals.h"
3738
#include "cycfg_pins.h"
3839

3940
void init_cycfg_all(void);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.3.1.1499
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+
const cy_stc_smif_config_t CYBSP_QSPI_config = {
30+
.mode = (uint32_t)CY_SMIF_NORMAL,
31+
.deselectDelay = CYBSP_QSPI_DESELECT_DELAY,
32+
.rxClockSel = (uint32_t)CY_SMIF_SEL_INV_INTERNAL_CLK,
33+
.blockEvent = (uint32_t)CY_SMIF_BUS_ERROR,
34+
};
35+
#if defined (CY_USING_HAL)
36+
const cyhal_resource_inst_t CYBSP_QSPI_obj = {
37+
.type = CYHAL_RSC_SMIF,
38+
.block_num = 0U,
39+
.channel_num = 0U,
40+
};
41+
#endif //defined (CY_USING_HAL)
42+
43+
44+
void init_cycfg_peripherals(void)
45+
{
46+
#if defined (CY_USING_HAL)
47+
cyhal_hwmgr_reserve(&CYBSP_QSPI_obj);
48+
#endif //defined (CY_USING_HAL)
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
* Device Configurator: 2.0.0.1483
8+
* Device Support Library (../../../psoc6pdl): 1.3.1.1499
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_smif.h"
32+
#include "cycfg_qspi_memslot.h"
33+
#if defined (CY_USING_HAL)
34+
#include "cyhal_hwmgr.h"
35+
#endif //defined (CY_USING_HAL)
36+
37+
#if defined(__cplusplus)
38+
extern "C" {
39+
#endif
40+
41+
#define CYBSP_QSPI_ENABLED 1U
42+
#define CYBSP_QSPI_HW SMIF0
43+
#define CYBSP_QSPI_IRQ smif_interrupt_IRQn
44+
#define CYBSP_QSPI_MEMORY_MODE_ALIGMENT_ERROR (0UL)
45+
#define CYBSP_QSPI_RX_DATA_FIFO_UNDERFLOW (0UL)
46+
#define CYBSP_QSPI_TX_COMMAND_FIFO_OVERFLOW (0UL)
47+
#define CYBSP_QSPI_TX_DATA_FIFO_OVERFLOW (0UL)
48+
#define CYBSP_QSPI_RX_FIFO_TRIGEER_LEVEL (0UL)
49+
#define CYBSP_QSPI_TX_FIFO_TRIGEER_LEVEL (0UL)
50+
#define CYBSP_QSPI_DATALINES0_1 (1UL)
51+
#define CYBSP_QSPI_DATALINES2_3 (1UL)
52+
#define CYBSP_QSPI_DATALINES4_5 (0UL)
53+
#define CYBSP_QSPI_DATALINES6_7 (0UL)
54+
#define CYBSP_QSPI_SS0 (1UL)
55+
#define CYBSP_QSPI_SS1 (0UL)
56+
#define CYBSP_QSPI_SS2 (0UL)
57+
#define CYBSP_QSPI_SS3 (0UL)
58+
#define CYBSP_QSPI_DESELECT_DELAY 7
59+
60+
extern const cy_stc_smif_config_t CYBSP_QSPI_config;
61+
#if defined (CY_USING_HAL)
62+
extern const cyhal_resource_inst_t CYBSP_QSPI_obj;
63+
#endif //defined (CY_USING_HAL)
64+
65+
void init_cycfg_peripherals(void);
66+
67+
#if defined(__cplusplus)
68+
}
69+
#endif
70+
71+
72+
#endif /* CYCFG_PERIPHERALS_H */

0 commit comments

Comments
 (0)