資源簡介
通過串口來控制pwm的輸出 已經調通并用在項目上 波特率為9600 pwm可以隨意設置 16位定時器
代碼片段和文件信息
/********************?(C)?COPYRIGHT?2011?野火嵌入式開發工作室?********************
?*?文件名??:led.c
?*?描述????:led?應用函數庫
?*??????????
?*?實驗平臺:野火STM32開發板
?*?硬件連接:-----------------
?*??????????|???PC3?-?LED1?????|
?*??????????|???PC4?-?LED2?????|
?*??????????|???PC5?-?LED3?????|
?*???????????-----------------?
?*?庫版本??:ST3.0.0
?*
?*?作者????:fire??QQ:?313303034 ??
?*?博客????:firestm32.blog.chinaunix.net?
**********************************************************************************/
#include?“led.h“
/*
?*?函數名:LED_GPIO_Config
?*?描述??:配置LED用到的I/O口
?*?輸入??:無
?*?輸出??:無
?*/
void?LED_GPIO_Config(void)
{
GPIO_InitTypeDef?GPIO_InitStructure;
RCC_APB2PeriphClockCmd(?RCC_APB2Periph_GPIOB?ENABLE);
??GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_12?|?GPIO_Pin_13?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-12-07?11:14??uart\
?????文件?????????497??2011-12-07?11:13??uart\Jli
?????文件???????????0??2011-06-03?16:03??uart\Jli
?????文件???????84283??2011-12-07?11:14??uart\Jli
?????文件?????????285??2011-12-05?14:32??uart\Jli
?????文件????????1127??2011-12-05?15:14??uart\led.c
?????文件?????????594??2011-12-05?15:14??uart\led.h
?????目錄???????????0??2011-12-05?19:24??uart\Lib\
?????文件???????????0??2011-06-03?15:58??uart\Lib\core_cm3.c
?????文件???????42077??2011-06-03?16:00??uart\Lib\core_cm3.h
?????目錄???????????0??2011-12-05?19:24??uart\Lib\inc\
?????文件????????4951??2011-06-03?15:50??uart\Lib\inc\misc.h
?????文件???????19558??2011-06-03?15:50??uart\Lib\inc\stm32f10x_adc.h
?????文件????????7373??2011-06-03?15:50??uart\Lib\inc\stm32f10x_bkp.h
?????文件???????14289??2011-06-03?15:51??uart\Lib\inc\stm32f10x_can.h
?????文件????????1980??2011-06-03?15:51??uart\Lib\inc\stm32f10x_crc.h
?????文件???????10271??2011-06-03?15:51??uart\Lib\inc\stm32f10x_dac.h
?????文件????????2980??2011-06-03?15:52??uart\Lib\inc\stm32f10x_dbgmcu.h
?????文件???????18790??2011-06-03?15:52??uart\Lib\inc\stm32f10x_dma.h
?????文件????????5833??2011-06-03?15:52??uart\Lib\inc\stm32f10x_exti.h
?????文件???????14446??2011-06-03?15:53??uart\Lib\inc\stm32f10x_flash.h
?????文件???????17276??2011-06-03?15:53??uart\Lib\inc\stm32f10x_fsmc.h
?????文件???????15050??2011-06-03?15:53??uart\Lib\inc\stm32f10x_gpio.h
?????文件???????16923??2011-06-03?15:53??uart\Lib\inc\stm32f10x_i2c.h
?????文件????????3677??2011-06-03?15:53??uart\Lib\inc\stm32f10x_iwdg.h
?????文件????????4201??2011-06-03?15:53??uart\Lib\inc\stm32f10x_pwr.h
?????文件???????16258??2011-06-03?15:53??uart\Lib\inc\stm32f10x_rcc.h
?????文件????????3659??2011-06-03?15:54??uart\Lib\inc\stm32f10x_rtc.h
?????文件???????18598??2011-06-03?15:54??uart\Lib\inc\stm32f10x_sdio.h
?????文件???????14896??2011-06-03?15:54??uart\Lib\inc\stm32f10x_spi.h
?????文件???????48768??2011-12-05?14:22??uart\Lib\inc\stm32f10x_tim.h
............此處省略108個文件信息
- 上一篇:GPS網平差代碼程序
- 下一篇:Linux socket 發送數據,接收數據測試
評論
共有 條評論