資源簡介
用IAR編譯器編譯的STM32F103的工程模板程序,有需要的朋友可以下載去借鑒借鑒!

代碼片段和文件信息
#include?“stm32f10x.h“
#include?“led.h“
////////////////////////////////////////////////////////////////////////////////// ?
//本程序只供學習使用,未經作者許可,不得用于其它任何用途
//Mini?STM32開發板
//LED驅動代碼 ???
//正點原子@ALIENTEK
//技術論壇:www.openedv.com
//修改日期:2012/5/27
//版本:V1.0
//版權所有,盜版必究。
//Copyright(C)?正點原子?2009-2019
//All?rights?reserved ??
//////////////////////////////////////////////////////////////////////////////////? ???
//初始化PA8和PD2為輸出口.并使能這兩個口的時鐘 ????
//LED?IO初始化
void?LED_Init(void)
{
???GPIO_InitTypeDef??GPIO_InitStructure;
??????????
???RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB?ENABLE); ??//使能PAB端口時鐘
??????????
???GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_All;????????????????????//LED0-->PB.8?端口配置
???GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_OD;? ??//推挽輸出
???GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
???GPIO_Init(GPIOB?&GPIO_InitStructure);
???GPIO_SetBits(GPIOBGPIO_Pin_All); ??//PB??輸出高
??
}
?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1056??2015-08-02?09:01??工程模板\HARDWARE\LED\led.c
?????文件????????457??2015-07-24?09:23??工程模板\HARDWARE\LED\led.h
?????文件???????1320??2015-08-25?08:34??工程模板\OBJ\build\Debug\Exe\project.bin
?????文件?????104176??2015-08-25?08:34??工程模板\OBJ\build\Debug\Exe\project.out
?????文件??????11164??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\delay.o
?????文件???????6876??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\led.o
?????文件???????6636??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\main.o
?????文件??????13988??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\misc.o
?????文件???????2559??2015-10-04?20:23??工程模板\OBJ\build\Debug\Obj\project.pbd
?????文件??????34636??2015-08-24?16:56??工程模板\OBJ\build\Debug\Obj\startup_stm32f10x_md.o
?????文件??????69356??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_adc.o
?????文件??????23800??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_bkp.o
?????文件??????59272??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_can.o
?????文件??????27736??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_cec.o
?????文件??????14092??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_crc.o
?????文件??????25828??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_dac.o
?????文件???????9616??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_dbgmcu.o
?????文件??????25832??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_dma.o
?????文件??????18692??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_exti.o
?????文件??????56920??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_flash.o
?????文件??????42064??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_fsmc.o
?????文件??????38280??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_gpio.o
?????文件??????62972??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_i2c.o
?????文件??????15536??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_it.o
?????文件??????14212??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_iwdg.o
?????文件??????19480??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_pwr.o
?????文件??????61136??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_rcc.o
?????文件??????27392??2015-08-25?08:33??工程模板\OBJ\build\Debug\Obj\stm32f10x_rtc.o
?????文件??????52984??2015-08-25?08:34??工程模板\OBJ\build\Debug\Obj\stm32f10x_sdio.o
?????文件??????46060??2015-08-25?08:34??工程模板\OBJ\build\Debug\Obj\stm32f10x_spi.o
............此處省略104個文件信息
- 上一篇:多機調度問題的貪心算法實現
- 下一篇:獲取兩字符串中所有公共子串
評論
共有 條評論