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 /******************************************************************************
41 * Function Name: Cy_PDL_Init
42 ****************************************************************************//**
43 *
44 * \brief Initializes the platform and peripheral block configuration for the
45 * given target device.
46 *
47 * \param device
48 * Pointer to the platform and peripheral block configuration
49 *
50 * \note
51 * This function must be called prior calling any function in PDL.
52 *
53 *******************************************************************************/
Cy_PDL_Init(const cy_stc_device_t * device)54 void Cy_PDL_Init(const cy_stc_device_t * device)
55 {
56 cy_device = device;
57 }
58
59
60 /* [] END OF FILE */
61