text: /*******************************************************************************
  * File Name: cycfg_pins.c
  *
  * Description:
  * Pin configuration
  * This file was automatically generated and should not be modified.
  * 
  ********************************************************************************
  * Copyright 2017-2019 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_pins.h"
  
  const cy_stc_gpio_pin_config_t BUTTON_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_PULLUP,
  	.hsiom = BUTTON_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t CARD_DET_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG_IN_OFF,
  	.hsiom = CARD_DET_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_12_pin_4_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_12_pin_4_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_12_pin_5_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_12_pin_5_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_13_pin_0_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_13_pin_0_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_13_pin_1_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_13_pin_1_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_13_pin_2_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_13_pin_2_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_13_pin_3_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG,
  	.hsiom = ioss_0_port_13_pin_3_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_14_pin_0_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_ANALOG,
  	.hsiom = ioss_0_port_14_pin_0_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_14_pin_1_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_ANALOG,
  	.hsiom = ioss_0_port_14_pin_1_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t WRITE_TIME_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG_IN_OFF,
  	.hsiom = WRITE_TIME_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t READ_TIME_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG_IN_OFF,
  	.hsiom = READ_TIME_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_6_pin_4_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_STRONG_IN_OFF,
  	.hsiom = ioss_0_port_6_pin_4_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_6_pin_6_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_PULLUP,
  	.hsiom = ioss_0_port_6_pin_6_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  const cy_stc_gpio_pin_config_t ioss_0_port_6_pin_7_config = 
  {
  	.outVal = 1,
  	.driveMode = CY_GPIO_DM_PULLDOWN,
  	.hsiom = ioss_0_port_6_pin_7_HSIOM,
  	.intEdge = CY_GPIO_INTR_DISABLE,
  	.intMask = 0UL,
  	.vtrip = CY_GPIO_VTRIP_CMOS,
  	.slewRate = CY_GPIO_SLEW_FAST,
  	.driveSel = CY_GPIO_DRIVE_FULL,
  	.vregEn = 0UL,
  	.ibufMode = 0UL,
  	.vtripSel = 0UL,
  	.vrefSel = 0UL,
  	.vohSel = 0UL,
  };
  
  
  void init_cycfg_pins(void)
  {
  	Cy_GPIO_Pin_Init(BUTTON_PORT, BUTTON_PIN, &BUTTON_config);
  
  	Cy_GPIO_Pin_Init(CARD_DET_PORT, CARD_DET_PIN, &CARD_DET_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_12_pin_4_PORT, ioss_0_port_12_pin_4_PIN, &ioss_0_port_12_pin_4_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_12_pin_5_PORT, ioss_0_port_12_pin_5_PIN, &ioss_0_port_12_pin_5_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_13_pin_0_PORT, ioss_0_port_13_pin_0_PIN, &ioss_0_port_13_pin_0_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_13_pin_1_PORT, ioss_0_port_13_pin_1_PIN, &ioss_0_port_13_pin_1_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_13_pin_2_PORT, ioss_0_port_13_pin_2_PIN, &ioss_0_port_13_pin_2_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_13_pin_3_PORT, ioss_0_port_13_pin_3_PIN, &ioss_0_port_13_pin_3_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_14_pin_0_PORT, ioss_0_port_14_pin_0_PIN, &ioss_0_port_14_pin_0_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_14_pin_1_PORT, ioss_0_port_14_pin_1_PIN, &ioss_0_port_14_pin_1_config);
  
  	Cy_GPIO_Pin_Init(WRITE_TIME_PORT, WRITE_TIME_PIN, &WRITE_TIME_config);
  
  	Cy_GPIO_Pin_Init(READ_TIME_PORT, READ_TIME_PIN, &READ_TIME_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_6_pin_4_PORT, ioss_0_port_6_pin_4_PIN, &ioss_0_port_6_pin_4_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_6_pin_6_PORT, ioss_0_port_6_pin_6_PIN, &ioss_0_port_6_pin_6_config);
  
  	Cy_GPIO_Pin_Init(ioss_0_port_6_pin_7_PORT, ioss_0_port_6_pin_7_PIN, &ioss_0_port_6_pin_7_config);
  }
  