資源簡(jiǎn)介
VL53L0X_general.rar

代碼片段和文件信息
#include?“l(fā)ed.h“
////////////////////////////////////////////////////////////////////////////////// ?
//本程序只供學(xué)習(xí)使用,未經(jīng)作者許可,不得用于其它任何用途
//ALIENTEK?miniSTM32開發(fā)板
//LED驅(qū)動(dòng)代碼 ???
//正點(diǎn)原子@ALIENTEK
//技術(shù)論壇:www.openedv.com
//修改日期:2012/9/2
//版本:V1.0
//版權(quán)所有,盜版必究。
//Copyright(C)?廣州市星翼電子科技有限公司?2009-2019
//All?rights?reserved ??
//////////////////////////////////////////////////////////////////////////////////? ???
//初始化PB5和PE5為輸出口.并使能這兩個(gè)口的時(shí)鐘 ????
//LED?IO初始化
void?LED_Init(void)
{
?
?GPIO_InitTypeDef??GPIO_InitStructure;
?
?RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOD?ENABLE); ?//使能PAPD端口時(shí)鐘
?GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_8; ?//LED0-->PA.8?端口配置
?GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;? ?//推挽輸出
?GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz; ?//IO口速度為50MHz
?GPIO_Init(GPIOA?&GPIO_InitStructure); ?//根據(jù)設(shè)定參數(shù)初始化GPIOA.8
?GPIO_SetBits(GPIOAGPIO_Pin_8); ?//PA.8?輸出高
?GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_2; ???? ?//LED1-->PD.2?端口配置?推挽輸出
?GPIO_Init(GPIOD?&GPIO_InitStructure); ?? ?//推挽輸出?,IO口速度為50MHz
?GPIO_SetBits(GPIODGPIO_Pin_2);? ?//PD.2?輸出高?
}
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1301??2016-12-07?13:17??VL53L0X_general\LED\led.c
?????文件????????640??2017-07-24?20:16??VL53L0X_general\LED\led.h
?????文件???????8982??2017-12-23?14:56??VL53L0X_general\lib\inc\misc.h
?????文件??????21690??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_adc.h
?????文件???????7555??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_bkp.h
?????文件??????27559??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_can.h
?????文件???????6573??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_cec.h
?????文件???????2162??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_crc.h
?????文件??????15233??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_dac.h
?????文件???????3818??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_dbgmcu.h
?????文件??????20754??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_dma.h
?????文件???????6824??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_exti.h
?????文件??????25445??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_flash.h
?????文件??????27016??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_fsmc.h
?????文件??????20175??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_gpio.h
?????文件??????30029??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_i2c.h
?????文件???????3828??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_iwdg.h
?????文件???????4383??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_pwr.h
?????文件??????30452??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_rcc.h
?????文件???????3857??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_rtc.h
?????文件??????21863??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_sdio.h
?????文件??????17725??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_spi.h
?????文件??????52427??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_tim.h
?????文件??????16548??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_usart.h
?????文件???????2966??2017-12-23?14:56??VL53L0X_general\lib\inc\stm32f10x_wwdg.h
?????文件???????7046??2017-12-23?14:56??VL53L0X_general\lib\src\misc.c
?????文件??????47201??2017-12-23?14:56??VL53L0X_general\lib\src\stm32f10x_adc.c
?????文件???????8463??2017-12-23?14:56??VL53L0X_general\lib\src\stm32f10x_bkp.c
?????文件??????45103??2017-12-23?14:56??VL53L0X_general\lib\src\stm32f10x_can.c
?????文件??????11656??2017-12-23?14:56??VL53L0X_general\lib\src\stm32f10x_cec.c
............此處省略227個(gè)文件信息
評(píng)論
共有 條評(píng)論