1 /**
2   **************************************************************************
3   * @file     at32f423_conf.h
4   * @brief    at32f423 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 
25 /* define to prevent recursive inclusion -------------------------------------*/
26 #ifndef __AT32F423_CONF_H
27 #define __AT32F423_CONF_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /**
34   * @brief in the following line adjust the value of high speed exernal crystal (hext)
35   * used in your application
36   *
37   * tip: to avoid modifying this file each time you need to use different hext, you
38   *      can define the hext value in your toolchain compiler preprocessor.
39   *
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 #define LEXT_VALUE                       ((uint32_t)32768)   /*!< value of the low speed exernal clock in hz */
52 
53 /* module define -------------------------------------------------------------*/
54 #define CRM_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 DAC_MODULE_ENABLED
64 #define SPI_MODULE_ENABLED
65 #define DMA_MODULE_ENABLED
66 #define DEBUG_MODULE_ENABLED
67 #define FLASH_MODULE_ENABLED
68 #define CRC_MODULE_ENABLED
69 #define WWDT_MODULE_ENABLED
70 #define WDT_MODULE_ENABLED
71 #define EXINT_MODULE_ENABLED
72 #define XMC_MODULE_ENABLED
73 #define USB_MODULE_ENABLED
74 #define ACC_MODULE_ENABLED
75 #define MISC_MODULE_ENABLED
76 #define SCFG_MODULE_ENABLED
77 
78 /* includes ------------------------------------------------------------------*/
79 #ifdef CRM_MODULE_ENABLED
80 #include "at32f423_crm.h"
81 #endif
82 #ifdef TMR_MODULE_ENABLED
83 #include "at32f423_tmr.h"
84 #endif
85 #ifdef ERTC_MODULE_ENABLED
86 #include "at32f423_ertc.h"
87 #endif
88 #ifdef GPIO_MODULE_ENABLED
89 #include "at32f423_gpio.h"
90 #endif
91 #ifdef I2C_MODULE_ENABLED
92 #include "at32f423_i2c.h"
93 #endif
94 #ifdef USART_MODULE_ENABLED
95 #include "at32f423_usart.h"
96 #endif
97 #ifdef PWC_MODULE_ENABLED
98 #include "at32f423_pwc.h"
99 #endif
100 #ifdef CAN_MODULE_ENABLED
101 #include "at32f423_can.h"
102 #endif
103 #ifdef ADC_MODULE_ENABLED
104 #include "at32f423_adc.h"
105 #endif
106 #ifdef DAC_MODULE_ENABLED
107 #include "at32f423_dac.h"
108 #endif
109 #ifdef SPI_MODULE_ENABLED
110 #include "at32f423_spi.h"
111 #endif
112 #ifdef DMA_MODULE_ENABLED
113 #include "at32f423_dma.h"
114 #endif
115 #ifdef DEBUG_MODULE_ENABLED
116 #include "at32f423_debug.h"
117 #endif
118 #ifdef FLASH_MODULE_ENABLED
119 #include "at32f423_flash.h"
120 #endif
121 #ifdef CRC_MODULE_ENABLED
122 #include "at32f423_crc.h"
123 #endif
124 #ifdef WWDT_MODULE_ENABLED
125 #include "at32f423_wwdt.h"
126 #endif
127 #ifdef WDT_MODULE_ENABLED
128 #include "at32f423_wdt.h"
129 #endif
130 #ifdef EXINT_MODULE_ENABLED
131 #include "at32f423_exint.h"
132 #endif
133 #ifdef XMC_MODULE_ENABLED
134 #include "at32f423_xmc.h"
135 #endif
136 #ifdef ACC_MODULE_ENABLED
137 #include "at32f423_acc.h"
138 #endif
139 #ifdef MISC_MODULE_ENABLED
140 #include "at32f423_misc.h"
141 #endif
142 #ifdef SCFG_MODULE_ENABLED
143 #include "at32f423_scfg.h"
144 #endif
145 #ifdef USB_MODULE_ENABLED
146 #include "at32f423_usb.h"
147 #endif
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif
154