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_MAX32680_MXC_PINS_H_ 27 #define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_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_extclk; 34 #define gpio_cfg_hfextclk gpio_cfg_extclk 35 /* ^ Defined for driver compatability that references 36 gpio_cfg_hfextclk instead of gpio_cfg_extclk 37 */ 38 extern const mxc_gpio_cfg_t gpio_cfg_i2c0; 39 extern const mxc_gpio_cfg_t gpio_cfg_i2c1; 40 extern const mxc_gpio_cfg_t gpio_cfg_i2c2; 41 extern const mxc_gpio_cfg_t gpio_cfg_i2c2b; 42 extern const mxc_gpio_cfg_t gpio_cfg_i2c2c; 43 44 extern const mxc_gpio_cfg_t gpio_cfg_uart0; 45 extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow; 46 extern const mxc_gpio_cfg_t gpio_cfg_uart0_flow_disable; 47 extern const mxc_gpio_cfg_t gpio_cfg_uart1; 48 extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow; 49 extern const mxc_gpio_cfg_t gpio_cfg_uart1_flow_disable; 50 extern const mxc_gpio_cfg_t gpio_cfg_uart2; 51 extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow; 52 extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow_disable; 53 extern const mxc_gpio_cfg_t gpio_cfg_uart3; 54 55 extern const mxc_gpio_cfg_t antenna_ctrl0; 56 extern const mxc_gpio_cfg_t antenna_ctrl1; 57 58 // Timers are only defined once, depending on package, each timer could be mapped to other pins 59 extern const mxc_gpio_cfg_t gpio_cfg_tmr0; 60 extern const mxc_gpio_cfg_t gpio_cfg_tmr1; 61 extern const mxc_gpio_cfg_t gpio_cfg_tmr2; 62 extern const mxc_gpio_cfg_t gpio_cfg_tmr3; 63 extern const mxc_gpio_cfg_t gpio_cfg_tmr0b; 64 extern const mxc_gpio_cfg_t gpio_cfg_tmr1b; 65 extern const mxc_gpio_cfg_t gpio_cfg_tmr1_MapB; 66 extern const mxc_gpio_cfg_t gpio_cfg_tmr2b; 67 extern const mxc_gpio_cfg_t gpio_cfg_tmr3b; 68 69 extern const mxc_gpio_cfg_t gpio_cfg_i2s0; 70 71 extern const mxc_gpio_cfg_t gpio_cfg_owm; 72 extern const mxc_gpio_cfg_t gpio_cfg_owmb; 73 74 extern const mxc_gpio_cfg_t gpio_cfg_rtcsqw; 75 extern const mxc_gpio_cfg_t gpio_cfg_rtcsqwb; 76 77 extern const mxc_gpio_cfg_t gpio_cfg_pt0; 78 extern const mxc_gpio_cfg_t gpio_cfg_pt1; 79 extern const mxc_gpio_cfg_t gpio_cfg_pt2; 80 extern const mxc_gpio_cfg_t gpio_cfg_pt3; 81 82 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain0; 83 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain1; 84 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain2; 85 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain3; 86 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain4; 87 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain5; 88 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain6; 89 extern const mxc_gpio_cfg_t gpio_cfg_adc_ain7; 90 91 extern const mxc_gpio_cfg_t gpio_cfg_rv_jtag; 92 93 // SPI v2 Pin Definitions 94 extern const mxc_gpio_cfg_t gpio_cfg_spi0_standard; 95 extern const mxc_gpio_cfg_t gpio_cfg_spi0_3wire; 96 extern const mxc_gpio_cfg_t gpio_cfg_spi0_dual; 97 extern const mxc_gpio_cfg_t gpio_cfg_spi0_quad; 98 99 // SPI v2 Target Selects Pin Definitions 100 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts0; 101 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts1; 102 extern const mxc_gpio_cfg_t gpio_cfg_spi0_ts2; 103 104 #endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_PINS_H_ 105