1 /***************************************************************************//**
2 * \file cy_device.c
3 * \version 2.0
4 *
5 * This file provides the definitions for core and peripheral block HW base
6 * addresses, versions, and parameters.
7 *
8 ********************************************************************************
9 * \copyright
10 * Copyright 2018-2019 Cypress Semiconductor Corporation
11 * SPDX-License-Identifier: Apache-2.0
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 *     http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *******************************************************************************/
25 
26 #include "cy_device.h"
27 
28 /*******************************************************************************
29 *                   Global Variables
30 *******************************************************************************/
31 
32 /* This is set in Cy_PDL_Init() to the device information relevant
33  * for the current target.
34  */
35 const cy_stc_device_t* cy_device;
36 
37 /* Platform and peripheral block configuration */
38 const cy_stc_device_t cy_deviceIpBlockCfg ;
39 
40 const uint32_t IPC_CHANNELS_NR[CY_IPC_INSTANCES] =
41 {
42     CY_IPC_IP0_CH,
43 };
44 
45 const uint32_t IPC_IRQ_NR[CY_IPC_INSTANCES] =
46 {
47     CY_IPC_IP0_INT,
48 };
49 
50 const uint32_t IPC_BASE_PTR[CY_IPC_INSTANCES] =
51 {
52     IPC_BASE,
53 };
54 
55 /******************************************************************************
56 * Function Name: Cy_PDL_Init
57 ****************************************************************************//**
58 *
59 * \brief Initializes the platform and peripheral block configuration for the
60 * given target device.
61 *
62 * \param device
63 * Pointer to the platform and peripheral block configuration
64 *
65 * \note
66 * This function must be called prior calling any function in PDL.
67 *
68 *******************************************************************************/
Cy_PDL_Init(const cy_stc_device_t * device)69 void Cy_PDL_Init(const cy_stc_device_t * device)
70 {
71     cy_device = device;
72 }
73 
74 
75 /* [] END OF FILE */
76