mxc_pins.h 3.2 KB

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