1 /**
2   **************************************************************************
3   * @file     at32f415_conf.h
4   * @version  v2.0.4
5   * @date     2022-04-02
6   * @brief    at32f415 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 __AT32F415_CONF_H
29 #define __AT32F415_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   * tip: to avoid modifying this file each time you need to use different hext, you
39   *      can define the hext value in your toolchain compiler preprocessor.
40   */
41 #if !defined  HEXT_VALUE
42 #define HEXT_VALUE               ((uint32_t)8000000) /*!< value of the high speed exernal crystal in hz */
43 #endif
44 
45 /**
46   * @brief in the following line adjust the high speed exernal crystal (hext) startup
47   * timeout value
48   */
49 #define HEXT_STARTUP_TIMEOUT     ((uint16_t)0x3000) /*!< time out for hext start up */
50 #define HICK_VALUE               ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */
51 
52 /* module define -------------------------------------------------------------*/
53 #define CRM_MODULE_ENABLED
54 #define CMP_MODULE_ENABLED
55 #define TMR_MODULE_ENABLED
56 #define ERTC_MODULE_ENABLED
57 #define GPIO_MODULE_ENABLED
58 #define I2C_MODULE_ENABLED
59 #define USART_MODULE_ENABLED
60 #define PWC_MODULE_ENABLED
61 #define CAN_MODULE_ENABLED
62 #define ADC_MODULE_ENABLED
63 #define SPI_MODULE_ENABLED
64 #define DMA_MODULE_ENABLED
65 #define DEBUG_MODULE_ENABLED
66 #define FLASH_MODULE_ENABLED
67 #define CRC_MODULE_ENABLED
68 #define WWDT_MODULE_ENABLED
69 #define WDT_MODULE_ENABLED
70 #define EXINT_MODULE_ENABLED
71 #define SDIO_MODULE_ENABLED
72 #define USB_MODULE_ENABLED
73 #define MISC_MODULE_ENABLED
74 
75 /* includes ------------------------------------------------------------------*/
76 #ifdef CRM_MODULE_ENABLED
77 #include "at32f415_crm.h"
78 #endif
79 #ifdef CMP_MODULE_ENABLED
80 #include "at32f415_cmp.h"
81 #endif
82 #ifdef TMR_MODULE_ENABLED
83 #include "at32f415_tmr.h"
84 #endif
85 #ifdef ERTC_MODULE_ENABLED
86 #include "at32f415_ertc.h"
87 #endif
88 #ifdef GPIO_MODULE_ENABLED
89 #include "at32f415_gpio.h"
90 #endif
91 #ifdef I2C_MODULE_ENABLED
92 #include "at32f415_i2c.h"
93 #endif
94 #ifdef USART_MODULE_ENABLED
95 #include "at32f415_usart.h"
96 #endif
97 #ifdef PWC_MODULE_ENABLED
98 #include "at32f415_pwc.h"
99 #endif
100 #ifdef CAN_MODULE_ENABLED
101 #include "at32f415_can.h"
102 #endif
103 #ifdef ADC_MODULE_ENABLED
104 #include "at32f415_adc.h"
105 #endif
106 #ifdef SPI_MODULE_ENABLED
107 #include "at32f415_spi.h"
108 #endif
109 #ifdef DMA_MODULE_ENABLED
110 #include "at32f415_dma.h"
111 #endif
112 #ifdef DEBUG_MODULE_ENABLED
113 #include "at32f415_debug.h"
114 #endif
115 #ifdef FLASH_MODULE_ENABLED
116 #include "at32f415_flash.h"
117 #endif
118 #ifdef CRC_MODULE_ENABLED
119 #include "at32f415_crc.h"
120 #endif
121 #ifdef WWDT_MODULE_ENABLED
122 #include "at32f415_wwdt.h"
123 #endif
124 #ifdef WDT_MODULE_ENABLED
125 #include "at32f415_wdt.h"
126 #endif
127 #ifdef EXINT_MODULE_ENABLED
128 #include "at32f415_exint.h"
129 #endif
130 #ifdef SDIO_MODULE_ENABLED
131 #include "at32f415_sdio.h"
132 #endif
133 #ifdef MISC_MODULE_ENABLED
134 #include "at32f415_misc.h"
135 #endif
136 #ifdef USB_MODULE_ENABLED
137 #include "at32f415_usb.h"
138 #endif
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif /* __AT32F415_CONF_H */
145 
146 
147