?? stm32f10x_conf.h
字號:
/*
*********************************************************************************************************
*
* 模塊名稱 : STM32固件庫配置文件。
* 文件名稱 : stm32f10x_conf.h
* 版 本 : V3.5.0
* 說 明 : 這是ST固件庫提供的文件。用戶可以根據(jù)需要包含ST固件庫的外設(shè)模塊。為了方便我們包含了所有固件
* 庫模塊。
*
* 這個文件被 Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h 包含,因此
* 我們在.c文件中只需要 include "stm32f10x.h"即可,不必單獨再include stm32f10x_conf.h文件
* 修改記錄 :
* 版本號 日期 作者 說明
* v1.0 2011-09-20 armfly ST固件庫升級到V3.4.0版本。
* v2.0 2011-11-16 armfly ST固件庫升級到V3.5.0版本。
*
* Copyright (C), 2010-2011, 安富萊電子 www.armfly.com
*
*********************************************************************************************************
*/
#ifndef __STM32F10x_CONF_H
#define __STM32F10x_CONF_H
/* 未注釋的行表示包含對應(yīng)的外設(shè)頭文件 */
#include "stm32f10x_adc.h"
#include "stm32f10x_bkp.h"
#include "stm32f10x_can.h"
#include "stm32f10x_cec.h"
#include "stm32f10x_crc.h"
#include "stm32f10x_dac.h"
#include "stm32f10x_dbgmcu.h"
#include "stm32f10x_dma.h"
#include "stm32f10x_exti.h"
#include "stm32f10x_flash.h"
#include "stm32f10x_fsmc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_i2c.h"
#include "stm32f10x_iwdg.h"
#include "stm32f10x_pwr.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_rtc.h"
#include "stm32f10x_sdio.h"
#include "stm32f10x_spi.h"
#include "stm32f10x_tim.h"
#include "stm32f10x_usart.h"
#include "stm32f10x_wwdg.h"
#include "misc.h" /* 用于NVIC和SysTick的高級函數(shù)(與CMSIS相關(guān)) */
/*
用戶可以選擇是否使能ST固件庫的斷言供能。使能斷言的方法有兩種:
(1) 在C編譯器的預(yù)定義宏選項中定義USE_FULL_ASSERT。
(2) 在本文件取消"#define USE_FULL_ASSERT 1"行的注釋。
*/
/* 取消下面代碼行的注釋則固件庫代碼會展開assert_param宏進行斷言 */
/* #define USE_FULL_ASSERT 1 */
#ifdef USE_FULL_ASSERT
/*
assert_param宏用于函數(shù)形參檢查。如果expr是false,它將調(diào)用assert_failed()函數(shù)報告發(fā)生錯誤的源文件
和行號。如果expr是true,將不執(zhí)行任何操作。
assert_failed() 函數(shù)在stm32f10x_assert.c文件(這是安富萊建立的文件)
*/
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0)
#endif
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -