Bohdan Kovalchuk | 7725652 | 2020-04-15 18:03:43 +0300 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * File Name: cycfg_pins.h |
| 3 | * |
| 4 | * Description: |
| 5 | * Pin 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_PINS_H) |
| 28 | #define CYCFG_PINS_H |
| 29 | |
| 30 | #include "cy_gpio.h" |
| 31 | #if defined (CY_USING_HAL) |
| 32 | #include "cyhal_hwmgr.h" |
| 33 | #endif //defined (CY_USING_HAL) |
| 34 | #include "cycfg_routing.h" |
| 35 | |
| 36 | #if defined(__cplusplus) |
| 37 | extern "C" { |
| 38 | #endif |
| 39 | |
| 40 | #define CYBSP_UART_RX_ENABLED 1U |
| 41 | #define CYBSP_UART_RX_PORT GPIO_PRT5 |
| 42 | #define CYBSP_UART_RX_PORT_NUM 5U |
| 43 | #define CYBSP_UART_RX_PIN 0U |
| 44 | #define CYBSP_UART_RX_NUM 0U |
| 45 | #define CYBSP_UART_RX_DRIVEMODE CY_GPIO_DM_HIGHZ |
| 46 | #define CYBSP_UART_RX_INIT_DRIVESTATE 1 |
| 47 | #ifndef ioss_0_port_5_pin_0_HSIOM |
| 48 | #define ioss_0_port_5_pin_0_HSIOM HSIOM_SEL_GPIO |
| 49 | #endif |
| 50 | #define CYBSP_UART_RX_HSIOM ioss_0_port_5_pin_0_HSIOM |
| 51 | #define CYBSP_UART_RX_IRQ ioss_interrupts_gpio_5_IRQn |
| 52 | #if defined (CY_USING_HAL) |
| 53 | #define CYBSP_UART_RX_HAL_PORT_PIN P5_0 |
| 54 | #endif //defined (CY_USING_HAL) |
| 55 | #if defined (CY_USING_HAL) |
| 56 | #define CYBSP_UART_RX_HAL_IRQ CYHAL_GPIO_IRQ_NONE |
| 57 | #endif //defined (CY_USING_HAL) |
| 58 | #if defined (CY_USING_HAL) |
| 59 | #define CYBSP_UART_RX_HAL_DIR CYHAL_GPIO_DIR_INPUT |
| 60 | #endif //defined (CY_USING_HAL) |
| 61 | #if defined (CY_USING_HAL) |
| 62 | #define CYBSP_UART_RX_HAL_DRIVEMODE CYHAL_GPIO_DRIVE_NONE |
| 63 | #endif //defined (CY_USING_HAL) |
| 64 | #define CYBSP_UART_TX_ENABLED 1U |
| 65 | #define CYBSP_UART_TX_PORT GPIO_PRT5 |
| 66 | #define CYBSP_UART_TX_PORT_NUM 5U |
| 67 | #define CYBSP_UART_TX_PIN 1U |
| 68 | #define CYBSP_UART_TX_NUM 1U |
| 69 | #define CYBSP_UART_TX_DRIVEMODE CY_GPIO_DM_STRONG_IN_OFF |
| 70 | #define CYBSP_UART_TX_INIT_DRIVESTATE 1 |
| 71 | #ifndef ioss_0_port_5_pin_1_HSIOM |
| 72 | #define ioss_0_port_5_pin_1_HSIOM HSIOM_SEL_GPIO |
| 73 | #endif |
| 74 | #define CYBSP_UART_TX_HSIOM ioss_0_port_5_pin_1_HSIOM |
| 75 | #define CYBSP_UART_TX_IRQ ioss_interrupts_gpio_5_IRQn |
| 76 | #if defined (CY_USING_HAL) |
| 77 | #define CYBSP_UART_TX_HAL_PORT_PIN P5_1 |
| 78 | #endif //defined (CY_USING_HAL) |
| 79 | #if defined (CY_USING_HAL) |
| 80 | #define CYBSP_UART_TX_HAL_IRQ CYHAL_GPIO_IRQ_NONE |
| 81 | #endif //defined (CY_USING_HAL) |
| 82 | #if defined (CY_USING_HAL) |
| 83 | #define CYBSP_UART_TX_HAL_DIR CYHAL_GPIO_DIR_OUTPUT |
| 84 | #endif //defined (CY_USING_HAL) |
| 85 | #if defined (CY_USING_HAL) |
| 86 | #define CYBSP_UART_TX_HAL_DRIVEMODE CYHAL_GPIO_DRIVE_STRONG |
| 87 | #endif //defined (CY_USING_HAL) |
| 88 | |
| 89 | extern const cy_stc_gpio_pin_config_t CYBSP_WCO_IN_config; |
| 90 | #if defined (CY_USING_HAL) |
| 91 | extern const cyhal_resource_inst_t CYBSP_WCO_IN_obj; |
| 92 | #endif //defined (CY_USING_HAL) |
| 93 | extern const cy_stc_gpio_pin_config_t CYBSP_WCO_OUT_config; |
| 94 | #if defined (CY_USING_HAL) |
| 95 | extern const cyhal_resource_inst_t CYBSP_WCO_OUT_obj; |
| 96 | #endif //defined (CY_USING_HAL) |
| 97 | extern const cy_stc_gpio_pin_config_t CYBSP_UART_RX_config; |
| 98 | #if defined (CY_USING_HAL) |
| 99 | extern const cyhal_resource_inst_t CYBSP_UART_RX_obj; |
| 100 | #endif //defined (CY_USING_HAL) |
| 101 | extern const cy_stc_gpio_pin_config_t CYBSP_UART_TX_config; |
| 102 | #if defined (CY_USING_HAL) |
| 103 | extern const cyhal_resource_inst_t CYBSP_UART_TX_obj; |
| 104 | #endif //defined (CY_USING_HAL) |
| 105 | |
| 106 | void init_cycfg_pins(void); |
| 107 | |
| 108 | #if defined(__cplusplus) |
| 109 | } |
| 110 | #endif |
| 111 | |
| 112 | |
| 113 | #endif /* CYCFG_PINS_H */ |