1 /**
2   **************************************************************************
3   * @file     at32f413_conf.h
4   * @version  v2.0.4
5   * @date     2022-04-02
6   * @brief    at32f413 config header file
7   **************************************************************************
8   *                       Copyright notice & Disclaimer
9   *
10   * The software Board Support Package (BSP) that is made available to
11   * download from Artery official website is the copyrighted work of Artery.
12   * Artery authorizes customers to use, copy, and distribute the BSP
13   * software and its related documentation for the purpose of design and
14   * development in conjunction with Artery microcontrollers. Use of the
15   * software is governed by this copyright notice and the following disclaimer.
16   *
17   * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
18   * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
19   * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
20   * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
21   * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
22   * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
23   *
24   **************************************************************************
25   */
26 
27 /* define to prevent recursive inclusion -------------------------------------*/
28 #ifndef __AT32F413_CONF_H
29 #define __AT32F413_CONF_H
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /**
36   * @brief in the following line adjust the value of high speed exernal crystal (hext)
37   * used in your application
38   *
39   * tip: to avoid modifying this file each time you need to use different hext, you
40   *      can define the hext value in your toolchain compiler preprocessor.
41   *
42   */
43 #if !defined  HEXT_VALUE
44 #define HEXT_VALUE               ((uint32_t)8000000) /*!< value of the high speed exernal crystal in hz */
45 #endif
46 
47 /**
48   * @brief in the following line adjust the high speed exernal 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 
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 
78 /* includes ------------------------------------------------------------------*/
79 #ifdef CRM_MODULE_ENABLED
80 #include "at32f413_crm.h"
81 #endif
82 #ifdef TMR_MODULE_ENABLED
83 #include "at32f413_tmr.h"
84 #endif
85 #ifdef RTC_MODULE_ENABLED
86 #include "at32f413_rtc.h"
87 #endif
88 #ifdef BPR_MODULE_ENABLED
89 #include "at32f413_bpr.h"
90 #endif
91 #ifdef GPIO_MODULE_ENABLED
92 #include "at32f413_gpio.h"
93 #endif
94 #ifdef I2C_MODULE_ENABLED
95 #include "at32f413_i2c.h"
96 #endif
97 #ifdef USART_MODULE_ENABLED
98 #include "at32f413_usart.h"
99 #endif
100 #ifdef PWC_MODULE_ENABLED
101 #include "at32f413_pwc.h"
102 #endif
103 #ifdef CAN_MODULE_ENABLED
104 #include "at32f413_can.h"
105 #endif
106 #ifdef ADC_MODULE_ENABLED
107 #include "at32f413_adc.h"
108 #endif
109 #ifdef SPI_MODULE_ENABLED
110 #include "at32f413_spi.h"
111 #endif
112 #ifdef DMA_MODULE_ENABLED
113 #include "at32f413_dma.h"
114 #endif
115 #ifdef DEBUG_MODULE_ENABLED
116 #include "at32f413_debug.h"
117 #endif
118 #ifdef FLASH_MODULE_ENABLED
119 #include "at32f413_flash.h"
120 #endif
121 #ifdef CRC_MODULE_ENABLED
122 #include "at32f413_crc.h"
123 #endif
124 #ifdef WWDT_MODULE_ENABLED
125 #include "at32f413_wwdt.h"
126 #endif
127 #ifdef WDT_MODULE_ENABLED
128 #include "at32f413_wdt.h"
129 #endif
130 #ifdef EXINT_MODULE_ENABLED
131 #include "at32f413_exint.h"
132 #endif
133 #ifdef SDIO_MODULE_ENABLED
134 #include "at32f413_sdio.h"
135 #endif
136 #ifdef ACC_MODULE_ENABLED
137 #include "at32f413_acc.h"
138 #endif
139 #ifdef MISC_MODULE_ENABLED
140 #include "at32f413_misc.h"
141 #endif
142 #ifdef USB_MODULE_ENABLED
143 #include "at32f413_usb.h"
144 #endif
145 
146 /**
147   * @}
148   */
149 
150   /**
151   * @}
152   */
153 
154 #ifdef __cplusplus
155 }
156 #endif
157 
158 #endif
159