ti_msp_dl_config.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Copyright (c) 2023, Texas Instruments Incorporated - http://www.ti.com
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * * Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. *
  16. * * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  22. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  23. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  24. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  25. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  26. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  27. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  29. * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  30. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /*
  33. * ============ ti_msp_dl_config.h =============
  34. * Configured MSPM0 DriverLib module declarations
  35. *
  36. * DO NOT EDIT - This file is generated for the MSPM0G350X
  37. * by the SysConfig tool.
  38. */
  39. #ifndef ti_msp_dl_config_h
  40. #define ti_msp_dl_config_h
  41. #define CONFIG_MSPM0G350X
  42. #define CONFIG_MSPM0G3507
  43. #if defined(__ti_version__) || defined(__TI_COMPILER_VERSION__)
  44. #define SYSCONFIG_WEAK __attribute__((weak))
  45. #elif defined(__IAR_SYSTEMS_ICC__)
  46. #define SYSCONFIG_WEAK __weak
  47. #elif defined(__GNUC__)
  48. #define SYSCONFIG_WEAK __attribute__((weak))
  49. #endif
  50. #include <ti/devices/msp/msp.h>
  51. #include <ti/driverlib/driverlib.h>
  52. #include <ti/driverlib/m0p/dl_core.h>
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. /*
  57. * ======== SYSCFG_DL_init ========
  58. * Perform all required MSP DL initialization
  59. *
  60. * This function should be called once at a point before any use of
  61. * MSP DL.
  62. */
  63. /* clang-format off */
  64. #define POWER_STARTUP_DELAY (16)
  65. #define CPUCLK_FREQ 32000000
  66. /* Defines for ADC12_0 */
  67. #define ADC12_0_INST ADC0
  68. #define ADC12_0_INST_IRQHandler ADC0_IRQHandler
  69. #define ADC12_0_INST_INT_IRQN (ADC0_INT_IRQn)
  70. #define ADC12_0_ADCMEM_0 DL_ADC12_MEM_IDX_0
  71. #define ADC12_0_ADCMEM_0_REF DL_ADC12_REFERENCE_VOLTAGE_VDDA
  72. #define ADC12_0_ADCMEM_0_REF_VOLTAGE_V 3.3
  73. #define ADC12_0_ADCMEM_1 DL_ADC12_MEM_IDX_1
  74. #define ADC12_0_ADCMEM_1_REF DL_ADC12_REFERENCE_VOLTAGE_VDDA
  75. #define ADC12_0_ADCMEM_1_REF_VOLTAGE_V 3.3
  76. #define ADC12_0_ADCMEM_2 DL_ADC12_MEM_IDX_2
  77. #define ADC12_0_ADCMEM_2_REF DL_ADC12_REFERENCE_VOLTAGE_VDDA
  78. #define ADC12_0_ADCMEM_2_REF_VOLTAGE_V 3.3
  79. #define GPIO_ADC12_0_C2_PORT GPIOA
  80. #define GPIO_ADC12_0_C2_PIN DL_GPIO_PIN_25
  81. #define GPIO_ADC12_0_C3_PORT GPIOA
  82. #define GPIO_ADC12_0_C3_PIN DL_GPIO_PIN_24
  83. #define GPIO_ADC12_0_C7_PORT GPIOA
  84. #define GPIO_ADC12_0_C7_PIN DL_GPIO_PIN_22
  85. /* Port definition for Pin Group GPIO_MULTIPLEXER_PIN_CONFIG */
  86. #define GPIO_MULTIPLEXER_PIN_CONFIG_PORT (GPIOA)
  87. /* Defines for PIN_E1: GPIOA.9 with pinCMx 20 on package pin 14 */
  88. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_E1_PIN (DL_GPIO_PIN_9)
  89. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_E1_IOMUX (IOMUX_PINCM20)
  90. /* Defines for PIN_S0: GPIOA.5 with pinCMx 10 on package pin 12 */
  91. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S0_PIN (DL_GPIO_PIN_5)
  92. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S0_IOMUX (IOMUX_PINCM10)
  93. /* Defines for PIN_S1: GPIOA.4 with pinCMx 9 on package pin 11 */
  94. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S1_PIN (DL_GPIO_PIN_4)
  95. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S1_IOMUX (IOMUX_PINCM9)
  96. /* Defines for PIN_S2: GPIOA.3 with pinCMx 8 on package pin 10 */
  97. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S2_PIN (DL_GPIO_PIN_3)
  98. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_S2_IOMUX (IOMUX_PINCM8)
  99. /* Defines for PIN_E0: GPIOA.6 with pinCMx 11 on package pin 13 */
  100. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_E0_PIN (DL_GPIO_PIN_6)
  101. #define GPIO_MULTIPLEXER_PIN_CONFIG_PIN_E0_IOMUX (IOMUX_PINCM11)
  102. /* clang-format on */
  103. void SYSCFG_DL_init(void);
  104. void SYSCFG_DL_initPower(void);
  105. void SYSCFG_DL_GPIO_init(void);
  106. void SYSCFG_DL_SYSCTL_init(void);
  107. void SYSCFG_DL_ADC12_0_init(void);
  108. #ifdef __cplusplus
  109. }
  110. #endif
  111. #endif /* ti_msp_dl_config_h */