text: /*******************************************************************************
  * File Name: cycfg_peripherals.c
  *
  * Description:
  * Peripheral Hardware Block configuration
  * This file was automatically generated and should not be modified.
  * Tools Package 2.1.0.1266
  * psoc6pdl 1.4.0.1889
  * personalities 1.0.0.0
  * udd 1.1.3.51
  *
  ********************************************************************************
  * Copyright 2020 Cypress Semiconductor Corporation
  * SPDX-License-Identifier: Apache-2.0
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  ********************************************************************************/
  
  #include "cycfg_peripherals.h"
  
  cy_stc_csd_context_t cy_csd_0_context = 
  {
  	.lockKey = CY_CSD_NONE_KEY,
  };
  const cy_stc_rtc_config_t CYBSP_RTC_config = 
  {
  	.sec = 0U,
  	.min = 0U,
  	.hour = 12U,
  	.amPm = CY_RTC_AM,
  	.hrFormat = CY_RTC_24_HOURS,
  	.dayOfWeek = CY_RTC_SUNDAY,
  	.date = 1U,
  	.month = CY_RTC_JANUARY,
  	.year = 0U,
  };
  #if defined (CY_USING_HAL)
  	const cyhal_resource_inst_t CYBSP_RTC_obj = 
  	{
  		.type = CYHAL_RSC_RTC,
  		.block_num = 0U,
  		.channel_num = 0U,
  	};
  #endif //defined (CY_USING_HAL)
  
  
  void init_cycfg_peripherals(void)
  {
  	Cy_SysClk_PeriphAssignDivider(PCLK_CSD_CLOCK, CY_SYSCLK_DIV_8_BIT, 3U);
  
  #if defined (CY_USING_HAL)
  	cyhal_hwmgr_reserve(&CYBSP_RTC_obj);
  #endif //defined (CY_USING_HAL)
  }
  