資源簡介
STM32
代碼片段和文件信息
#include?“ad7276.h“
vu16?fit[64]?=?{0};
?
void?AD7276_GPIO_Config(void)
{
GPIO_InitTypeDef?GPIO_InitStructure;
GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable?ENABLE);?
RCC_APB2PeriphClockCmd(?RCC_APB2Periph_GPIOA?|?RCC_APB2Periph_GPIOB?|?RCC_APB2Periph_GPIOE?|?RCC_APB2Periph_AFIO?ENABLE);
??GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_2??|??GPIO_Pin_3??;
??GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;???????
??GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
??GPIO_Init(GPIOE?&GPIO_InitStructure);
??GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_4?;
??GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_IN_FLOATING;???????
??GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
??GPIO_Init(GPIOE?&GPIO_InitStructure);
//-------------------------------------------------------------步進(jìn)電機(jī)
??GPIO_InitStructure.GPIO_Pin?=?GPIO_Pin_5?|?GPIO_Pin_6; ??????
??GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;
??GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz;
??GPIO_Init(GPIOE?&GPIO
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????351??2013-04-18?13:32??ad7276.h
?????文件???????1199??2012-06-06?15:38??ltc2604.c
?????文件????????436??2012-06-06?15:47??ltc2604.h
?????文件???????2548??2013-04-25?20:06??ad7276.c
-----------?---------??----------?-----??----
?????????????????4534????????????????????4
評論
共有 條評論