rt-thread-official/bsp/at32/at32a423-start/board/inc/at32a423_conf.h

171 lines
4.6 KiB
C
Raw Normal View History

/**
**************************************************************************
* @file at32a423_conf.h
* @brief at32a423 config header file
**************************************************************************
* Copyright notice & Disclaimer
*
* The software Board Support Package (BSP) that is made available to
* download from Artery official website is the copyrighted work of Artery.
* Artery authorizes customers to use, copy, and distribute the BSP
* software and its related documentation for the purpose of design and
* development in conjunction with Artery microcontrollers. Use of the
* software is governed by this copyright notice and the following disclaimer.
*
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
* GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
* TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
* STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
* INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
*
**************************************************************************
*/
/* define to prevent recursive inclusion -------------------------------------*/
#ifndef __AT32A423_CONF_H
#define __AT32A423_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup AT32A423_periph_template
* @{
*/
/** @addtogroup 423_Library_configuration Library_configuration
* @{
*/
/**
* @brief in the following line adjust the value of high speed external crystal (hext)
* used in your application
*
* tip: to avoid modifying this file each time you need to use different hext, you
* can define the hext value in your toolchain compiler preprocessor.
*
*/
#if !defined HEXT_VALUE
#define HEXT_VALUE ((uint32_t)8000000) /*!< value of the high speed external crystal in hz */
#endif
/**
* @brief in the following line adjust the high speed external crystal (hext) startup
* timeout value
*/
#define HEXT_STARTUP_TIMEOUT ((uint16_t)0x3000) /*!< time out for hext start up */
#define HICK_VALUE ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */
#define LEXT_VALUE ((uint32_t)32768) /*!< value of the low speed external clock in hz */
/* module define -------------------------------------------------------------*/
#define CRM_MODULE_ENABLED
#define TMR_MODULE_ENABLED
#define ERTC_MODULE_ENABLED
#define GPIO_MODULE_ENABLED
#define I2C_MODULE_ENABLED
#define USART_MODULE_ENABLED
#define PWC_MODULE_ENABLED
#define CAN_MODULE_ENABLED
#define ADC_MODULE_ENABLED
#define DAC_MODULE_ENABLED
#define SPI_MODULE_ENABLED
#define DMA_MODULE_ENABLED
#define DEBUG_MODULE_ENABLED
#define FLASH_MODULE_ENABLED
#define CRC_MODULE_ENABLED
#define WWDT_MODULE_ENABLED
#define WDT_MODULE_ENABLED
#define EXINT_MODULE_ENABLED
#define XMC_MODULE_ENABLED
#define USB_MODULE_ENABLED
#define ACC_MODULE_ENABLED
#define MISC_MODULE_ENABLED
#define SCFG_MODULE_ENABLED
/* includes ------------------------------------------------------------------*/
#ifdef CRM_MODULE_ENABLED
#include "at32a423_crm.h"
#endif
#ifdef TMR_MODULE_ENABLED
#include "at32a423_tmr.h"
#endif
#ifdef ERTC_MODULE_ENABLED
#include "at32a423_ertc.h"
#endif
#ifdef GPIO_MODULE_ENABLED
#include "at32a423_gpio.h"
#endif
#ifdef I2C_MODULE_ENABLED
#include "at32a423_i2c.h"
#endif
#ifdef USART_MODULE_ENABLED
#include "at32a423_usart.h"
#endif
#ifdef PWC_MODULE_ENABLED
#include "at32a423_pwc.h"
#endif
#ifdef CAN_MODULE_ENABLED
#include "at32a423_can.h"
#endif
#ifdef ADC_MODULE_ENABLED
#include "at32a423_adc.h"
#endif
#ifdef DAC_MODULE_ENABLED
#include "at32a423_dac.h"
#endif
#ifdef SPI_MODULE_ENABLED
#include "at32a423_spi.h"
#endif
#ifdef DMA_MODULE_ENABLED
#include "at32a423_dma.h"
#endif
#ifdef DEBUG_MODULE_ENABLED
#include "at32a423_debug.h"
#endif
#ifdef FLASH_MODULE_ENABLED
#include "at32a423_flash.h"
#endif
#ifdef CRC_MODULE_ENABLED
#include "at32a423_crc.h"
#endif
#ifdef WWDT_MODULE_ENABLED
#include "at32a423_wwdt.h"
#endif
#ifdef WDT_MODULE_ENABLED
#include "at32a423_wdt.h"
#endif
#ifdef EXINT_MODULE_ENABLED
#include "at32a423_exint.h"
#endif
#ifdef XMC_MODULE_ENABLED
#include "at32a423_xmc.h"
#endif
#ifdef ACC_MODULE_ENABLED
#include "at32a423_acc.h"
#endif
#ifdef MISC_MODULE_ENABLED
#include "at32a423_misc.h"
#endif
#ifdef SCFG_MODULE_ENABLED
#include "at32a423_scfg.h"
#endif
#ifdef USB_MODULE_ENABLED
#include "at32a423_usb.h"
#endif
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif