1 /** 2 * @file mxc_pins.h 3 * @brief This file contains constant pin configurations for the peripherals. 4 */ 5 6 /****************************************************************************** 7 * 8 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by 9 * Analog Devices, Inc.), 10 * Copyright (C) 2023-2024 Analog Devices, Inc. 11 * 12 * Licensed under the Apache License, Version 2.0 (the "License"); 13 * you may not use this file except in compliance with the License. 14 * You may obtain a copy of the License at 15 * 16 * http://www.apache.org/licenses/LICENSE-2.0 17 * 18 * Unless required by applicable law or agreed to in writing, software 19 * distributed under the License is distributed on an "AS IS" BASIS, 20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 * See the License for the specific language governing permissions and 22 * limitations under the License. 23 * 24 ******************************************************************************/ 25 26 #ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32520_MXC_PINS_H_ 27 #define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32520_MXC_PINS_H_ 28 29 #include "gpio.h" 30 31 /***** Global Variables *****/ 32 // Predefined GPIO Configurations 33 extern const mxc_gpio_cfg_t gpio_cfg_i2c0; 34 35 extern const mxc_gpio_cfg_t gpio_cfg_uart0; 36 extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow; 37 38 extern const mxc_gpio_cfg_t gpio_cfg_spi0; 39 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ss0; 40 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ss1; 41 42 extern const mxc_gpio_cfg_t gpio_cfg_spi1; 43 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ss0; 44 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ss1; 45 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ss2; 46 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ss3; 47 48 extern const mxc_gpio_cfg_t gpio_cfg_tmr0; 49 extern const mxc_gpio_cfg_t gpio_cfg_tmr1; 50 extern const mxc_gpio_cfg_t gpio_cfg_tmr2; 51 extern const mxc_gpio_cfg_t gpio_cfg_tmr3; 52 53 extern const mxc_gpio_cfg_t gpio_cfg_sfe; 54 extern const mxc_gpio_cfg_t gpio_cfg_sfe_ss0; 55 extern const mxc_gpio_cfg_t gpio_cfg_sfe_ss1; 56 57 extern const mxc_gpio_cfg_t gpio_cfg_spi0_standard; 58 extern const mxc_gpio_cfg_t gpio_cfg_spi0_3wire; 59 extern const mxc_gpio_cfg_t gpio_cfg_spi0_dual; 60 extern const mxc_gpio_cfg_t gpio_cfg_spi0_quad; 61 extern const mxc_gpio_cfg_t gpio_cfg_spi1_standard; 62 extern const mxc_gpio_cfg_t gpio_cfg_spi1_3wire; 63 extern const mxc_gpio_cfg_t gpio_cfg_spi1_dual; 64 // MXC_SPI1 does not support Quad SPI (No pins available). 65 66 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts0; 67 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts1; 68 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts0; 69 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts1; 70 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts2; 71 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts3; 72 73 #endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32520_MXC_PINS_H_ 74