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_MAX32675_MXC_PINS_H_ 27 #define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_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_hfextclk; 34 #define gpio_cfg_extclk gpio_cfg_hfextclk 35 /* ^ Defined for backwards compatability after renaming 36 gpio_cfg_extclk -> gpio_cfg_hfextclk 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_uart2; 50 extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow; 51 extern const mxc_gpio_cfg_t gpio_cfg_uart2_flow_disable; 52 extern const mxc_gpio_cfg_t gpio_cfg_uart3; 53 extern const mxc_gpio_cfg_t gpio_cfg_uart3_flow; 54 extern const mxc_gpio_cfg_t gpio_cfg_uart3_flow_disable; 55 56 // extern const mxc_gpio_cfg_t gpio_cfg_spi0; 57 // NOTE: SPI1 definied here with SS1 only, SS0 is on port0 by itself. 58 extern const mxc_gpio_cfg_t gpio_cfg_spi1; 59 // NOTE: SPI2 defined here with SS0 only, and NOT SS1 and SS2 60 extern const mxc_gpio_cfg_t gpio_cfg_spi2; 61 // extern const mxc_gpio_cfg_t gpio_cfg_spi2b; 62 // NOTE: SPI3 defined here with SS0 only, and NOT SS1, SS2, or SS3 63 // extern const mxc_gpio_cfg_t gpio_cfg_spi3; 64 65 // Timers are only defined once, depending on package, each timer could be mapped to other pins 66 extern const mxc_gpio_cfg_t gpio_cfg_tmr0; 67 extern const mxc_gpio_cfg_t gpio_cfg_tmr1; 68 extern const mxc_gpio_cfg_t gpio_cfg_tmr2; 69 extern const mxc_gpio_cfg_t gpio_cfg_tmr3; 70 extern const mxc_gpio_cfg_t gpio_cfg_tmr4; 71 extern const mxc_gpio_cfg_t gpio_cfg_tmr5; 72 73 extern const mxc_gpio_cfg_t gpio_cfg_i2s0; 74 75 //extern const mxc_gpio_cfg_t gpio_cfg_rtcsqw; 76 //extern const mxc_gpio_cfg_t gpio_cfg_rtcsqwb; 77 78 extern const mxc_gpio_cfg_t gpio_cfg_lc1; 79 extern const mxc_gpio_cfg_t gpio_cfg_mon_lc1; 80 extern const mxc_gpio_cfg_t gpio_cfg_cmd_rs_lc1; 81 extern const mxc_gpio_cfg_t gpio_cfg_chrg_lc1; 82 extern const mxc_gpio_cfg_t gpio_cfg_lc2; 83 extern const mxc_gpio_cfg_t gpio_cfg_mon_lc2; 84 extern const mxc_gpio_cfg_t gpio_cfg_cmd_rs_lc2; 85 extern const mxc_gpio_cfg_t gpio_cfg_chrg_lc2; 86 87 // SPI v2 Pin Definitions 88 extern const mxc_gpio_cfg_t gpio_cfg_spi1_standard; 89 extern const mxc_gpio_cfg_t gpio_cfg_spi1_3wire; 90 // MXC_SPI1 does not support Dual or Quad modes. 91 92 // SPI v2 Target Selects Pin Definitions 93 extern const mxc_gpio_cfg_t gpio_cfg_spi1_ts0; 94 95 #endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32675_MXC_PINS_H_ 96