at32f413_conf.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /**
  2. **************************************************************************
  3. * @file at32f413_conf.h
  4. * @brief at32f413 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 __AT32F413_CONF_H
  26. #define __AT32F413_CONF_H
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. /** @addtogroup AT32F413_periph_template
  31. * @{
  32. */
  33. /** @addtogroup 413_Library_configuration Library_configuration
  34. * @{
  35. */
  36. /**
  37. * @brief in the following line adjust the value of high speed external crystal (hext)
  38. * used in your application
  39. *
  40. * tip: to avoid modifying this file each time you need to use different hext, you
  41. * can define the hext value in your toolchain compiler preprocessor.
  42. *
  43. */
  44. #if !defined HEXT_VALUE
  45. #define HEXT_VALUE ((uint32_t)8000000) /*!< value of the high speed external crystal in hz */
  46. #endif
  47. /**
  48. * @brief in the following line adjust the high speed external crystal (hext) startup
  49. * timeout value
  50. */
  51. #define HEXT_STARTUP_TIMEOUT ((uint16_t)0x3000) /*!< time out for hext start up */
  52. #define HICK_VALUE ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */
  53. #define LEXT_VALUE ((uint32_t)32768) /*!< value of the low speed external clock in hz */
  54. /* module define -------------------------------------------------------------*/
  55. #define CRM_MODULE_ENABLED
  56. #define TMR_MODULE_ENABLED
  57. #define RTC_MODULE_ENABLED
  58. #define BPR_MODULE_ENABLED
  59. #define GPIO_MODULE_ENABLED
  60. #define I2C_MODULE_ENABLED
  61. #define USART_MODULE_ENABLED
  62. #define PWC_MODULE_ENABLED
  63. #define CAN_MODULE_ENABLED
  64. #define ADC_MODULE_ENABLED
  65. #define SPI_MODULE_ENABLED
  66. #define DMA_MODULE_ENABLED
  67. #define DEBUG_MODULE_ENABLED
  68. #define FLASH_MODULE_ENABLED
  69. #define CRC_MODULE_ENABLED
  70. #define WWDT_MODULE_ENABLED
  71. #define WDT_MODULE_ENABLED
  72. #define EXINT_MODULE_ENABLED
  73. #define SDIO_MODULE_ENABLED
  74. #define USB_MODULE_ENABLED
  75. #define ACC_MODULE_ENABLED
  76. #define MISC_MODULE_ENABLED
  77. /* includes ------------------------------------------------------------------*/
  78. #ifdef CRM_MODULE_ENABLED
  79. #include "at32f413_crm.h"
  80. #endif
  81. #ifdef TMR_MODULE_ENABLED
  82. #include "at32f413_tmr.h"
  83. #endif
  84. #ifdef RTC_MODULE_ENABLED
  85. #include "at32f413_rtc.h"
  86. #endif
  87. #ifdef BPR_MODULE_ENABLED
  88. #include "at32f413_bpr.h"
  89. #endif
  90. #ifdef GPIO_MODULE_ENABLED
  91. #include "at32f413_gpio.h"
  92. #endif
  93. #ifdef I2C_MODULE_ENABLED
  94. #include "at32f413_i2c.h"
  95. #endif
  96. #ifdef USART_MODULE_ENABLED
  97. #include "at32f413_usart.h"
  98. #endif
  99. #ifdef PWC_MODULE_ENABLED
  100. #include "at32f413_pwc.h"
  101. #endif
  102. #ifdef CAN_MODULE_ENABLED
  103. #include "at32f413_can.h"
  104. #endif
  105. #ifdef ADC_MODULE_ENABLED
  106. #include "at32f413_adc.h"
  107. #endif
  108. #ifdef SPI_MODULE_ENABLED
  109. #include "at32f413_spi.h"
  110. #endif
  111. #ifdef DMA_MODULE_ENABLED
  112. #include "at32f413_dma.h"
  113. #endif
  114. #ifdef DEBUG_MODULE_ENABLED
  115. #include "at32f413_debug.h"
  116. #endif
  117. #ifdef FLASH_MODULE_ENABLED
  118. #include "at32f413_flash.h"
  119. #endif
  120. #ifdef CRC_MODULE_ENABLED
  121. #include "at32f413_crc.h"
  122. #endif
  123. #ifdef WWDT_MODULE_ENABLED
  124. #include "at32f413_wwdt.h"
  125. #endif
  126. #ifdef WDT_MODULE_ENABLED
  127. #include "at32f413_wdt.h"
  128. #endif
  129. #ifdef EXINT_MODULE_ENABLED
  130. #include "at32f413_exint.h"
  131. #endif
  132. #ifdef SDIO_MODULE_ENABLED
  133. #include "at32f413_sdio.h"
  134. #endif
  135. #ifdef ACC_MODULE_ENABLED
  136. #include "at32f413_acc.h"
  137. #endif
  138. #ifdef MISC_MODULE_ENABLED
  139. #include "at32f413_misc.h"
  140. #endif
  141. #ifdef USB_MODULE_ENABLED
  142. #include "at32f413_usb.h"
  143. #endif
  144. /**
  145. * @}
  146. */
  147. /**
  148. * @}
  149. */
  150. #ifdef __cplusplus
  151. }
  152. #endif
  153. #endif