1 /** 2 * @file mxc_pins.h 3 * @brief This file contains constant pin configurations for the peripherals. 4 */ 5 6 /* ***************************************************************************** 7 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. 8 * 9 * Permission is hereby granted, free of charge, to any person obtaining a 10 * copy of this software and associated documentation files (the "Software"), 11 * to deal in the Software without restriction, including without limitation 12 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 13 * and/or sell copies of the Software, and to permit persons to whom the 14 * Software is furnished to do so, subject to the following conditions: 15 * 16 * The above copyright notice and this permission notice shall be included 17 * in all copies or substantial portions of the Software. 18 * 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES 23 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 24 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 25 * OTHER DEALINGS IN THE SOFTWARE. 26 * 27 * Except as contained in this notice, the name of Maxim Integrated 28 * Products, Inc. shall not be used except as stated in the Maxim Integrated 29 * Products, Inc. Branding Policy. 30 * 31 * The mere transfer of this software does not imply any licenses 32 * of trade secrets, proprietary technology, copyrights, patents, 33 * trademarks, maskwork rights, or any other form of intellectual 34 * property whatsoever. Maxim Integrated Products, Inc. retains all 35 * ownership rights. 36 * 37 * $Date: 2018-08-09 18:45:02 -0500 (Thu, 09 Aug 2018) $ 38 * $Revision: 36818 $ 39 * 40 **************************************************************************** */ 41 42 /* Define to prevent redundant inclusion */ 43 #ifndef _MXC_PINS_H_ 44 #define _MXC_PINS_H_ 45 46 /* **** Includes **** */ 47 #include "gpio.h" 48 49 #ifdef __cplusplus 50 extern "C" { 51 #endif 52 53 /* **** Global Variables **** */ 54 55 // Predefined GPIO Configurations 56 57 /***** @brief TIMER pins *****/ 58 extern const gpio_cfg_t gpio_cfg_tmr0; 59 60 /***** @brief UART pins *****/ 61 extern const gpio_cfg_t gpio_cfg_uart0rtscts; 62 extern const gpio_cfg_t gpio_cfg_uart0a; 63 extern const gpio_cfg_t gpio_cfg_uart1rtscts; 64 extern const gpio_cfg_t gpio_cfg_uart1a; 65 extern const gpio_cfg_t gpio_cfg_uart1b; 66 extern const gpio_cfg_t gpio_cfg_uart1c; 67 extern const gpio_cfg_t gpio_cfg_uart2; 68 69 /***** @brief I2C pins *****/ 70 extern const gpio_cfg_t gpio_cfg_i2c0; 71 extern const gpio_cfg_t gpio_cfg_i2c1; 72 73 /***** @brief SPI/I2S pins *****/ 74 extern const gpio_cfg_t gpio_cfg_spi17y; // SPI0A 75 extern const gpio_cfg_t gpio_cfg_spimss1a; // SPI1A 76 extern const gpio_cfg_t gpio_cfg_spimss1b; // SPI1B 77 extern const gpio_cfg_t gpio_cfg_i2s1a; // same port as SPI1A 78 extern const gpio_cfg_t gpio_cfg_i2s1b; // same port as SPI1B 79 80 /***** @brief SWD pins *****/ 81 extern const gpio_cfg_t gpio_cfg_swd; 82 83 /***** @brief RTC pins *****/ 84 extern const gpio_cfg_t gpio_cfg_rtc; 85 86 #ifdef __cplusplus 87 } 88 #endif 89 90 #endif /* _MXC_PINS_H_ */ 91 92