at32f425_conf.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. **************************************************************************
  3. * @file at32f425_conf.h
  4. * @brief at32f425 config header file
  5. **************************************************************************
  6. * Copyright notice & Disclaimer
  7. *
  8. * The software Board Support Package (BSP) that is made available to
  9. * download from Artery official website is the copyrighted work of Artery.
  10. * Artery authorizes customers to use, copy, and distribute the BSP
  11. * software and its related documentation for the purpose of design and
  12. * development in conjunction with Artery microcontrollers. Use of the
  13. * software is governed by this copyright notice and the following disclaimer.
  14. *
  15. * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  16. * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  17. * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  18. * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  19. * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  21. *
  22. **************************************************************************
  23. */
  24. /* define to prevent recursive inclusion -------------------------------------*/
  25. #ifndef __AT32F425_CONF_H
  26. #define __AT32F425_CONF_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /**
  31. * @brief in the following line adjust the value of high speed exernal crystal (hext)
  32. * used in your application
  33. *
  34. * tip: to avoid modifying this file each time you need to use different hext, you
  35. * can define the hext value in your toolchain compiler preprocessor.
  36. *
  37. */
  38. #if !defined HEXT_VALUE
  39. #define HEXT_VALUE ((uint32_t)8000000) /*!< value of the high speed exernal crystal in hz */
  40. #endif
  41. /**
  42. * @brief in the following line adjust the high speed exernal crystal (hext) startup
  43. * timeout value
  44. */
  45. #define HEXT_STARTUP_TIMEOUT ((uint16_t)0x3000) /*!< time out for hext start up */
  46. #define HICK_VALUE ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */
  47. /* module define -------------------------------------------------------------*/
  48. #define ACC_MODULE_ENABLED
  49. #define CRM_MODULE_ENABLED
  50. #define TMR_MODULE_ENABLED
  51. #define ERTC_MODULE_ENABLED
  52. #define GPIO_MODULE_ENABLED
  53. #define I2C_MODULE_ENABLED
  54. #define CAN_MODULE_ENABLED
  55. #define USB_MODULE_ENABLED
  56. #define USART_MODULE_ENABLED
  57. #define PWC_MODULE_ENABLED
  58. #define ADC_MODULE_ENABLED
  59. #define SPI_MODULE_ENABLED
  60. #define DMA_MODULE_ENABLED
  61. #define DEBUG_MODULE_ENABLED
  62. #define FLASH_MODULE_ENABLED
  63. #define CRC_MODULE_ENABLED
  64. #define WWDT_MODULE_ENABLED
  65. #define WDT_MODULE_ENABLED
  66. #define EXINT_MODULE_ENABLED
  67. #define MISC_MODULE_ENABLED
  68. #define SCFG_MODULE_ENABLED
  69. /* includes ------------------------------------------------------------------*/
  70. #ifdef ACC_MODULE_ENABLED
  71. #include "at32f425_acc.h"
  72. #endif
  73. #ifdef CRM_MODULE_ENABLED
  74. #include "at32f425_crm.h"
  75. #endif
  76. #ifdef CAN_MODULE_ENABLED
  77. #include "at32f425_can.h"
  78. #endif
  79. #ifdef USB_MODULE_ENABLED
  80. #include "at32f425_usb.h"
  81. #endif
  82. #ifdef TMR_MODULE_ENABLED
  83. #include "at32f425_tmr.h"
  84. #endif
  85. #ifdef ERTC_MODULE_ENABLED
  86. #include "at32f425_ertc.h"
  87. #endif
  88. #ifdef GPIO_MODULE_ENABLED
  89. #include "at32f425_gpio.h"
  90. #endif
  91. #ifdef I2C_MODULE_ENABLED
  92. #include "at32f425_i2c.h"
  93. #endif
  94. #ifdef USART_MODULE_ENABLED
  95. #include "at32f425_usart.h"
  96. #endif
  97. #ifdef PWC_MODULE_ENABLED
  98. #include "at32f425_pwc.h"
  99. #endif
  100. #ifdef ADC_MODULE_ENABLED
  101. #include "at32f425_adc.h"
  102. #endif
  103. #ifdef SPI_MODULE_ENABLED
  104. #include "at32f425_spi.h"
  105. #endif
  106. #ifdef DMA_MODULE_ENABLED
  107. #include "at32f425_dma.h"
  108. #endif
  109. #ifdef DEBUG_MODULE_ENABLED
  110. #include "at32f425_debug.h"
  111. #endif
  112. #ifdef FLASH_MODULE_ENABLED
  113. #include "at32f425_flash.h"
  114. #endif
  115. #ifdef CRC_MODULE_ENABLED
  116. #include "at32f425_crc.h"
  117. #endif
  118. #ifdef WWDT_MODULE_ENABLED
  119. #include "at32f425_wwdt.h"
  120. #endif
  121. #ifdef WDT_MODULE_ENABLED
  122. #include "at32f425_wdt.h"
  123. #endif
  124. #ifdef EXINT_MODULE_ENABLED
  125. #include "at32f425_exint.h"
  126. #endif
  127. #ifdef MISC_MODULE_ENABLED
  128. #include "at32f425_misc.h"
  129. #endif
  130. #ifdef SCFG_MODULE_ENABLED
  131. #include "at32f425_scfg.h"
  132. #endif
  133. #ifdef __cplusplus
  134. }
  135. #endif
  136. #endif