中级会员
 
- 积分
- 204
- 金钱
- 204
- 注册时间
- 2016-6-18
- 在线时间
- 75 小时
|
20金钱
主机:
GPIO_PinAFConfig(GPIOA,GPIO_PinSource15,GPIO_AF_SPI1);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
从机:
GPIO_PinAFConfig(GPIOA,GPIO_PinSource15,GPIO_AF_SPI1);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
这样设置有问题吗???
NSS软件管理,在没有连从机的情况下 GPIO_ResetBits(GPIOA,GPIO_Pin_15); 为什么没有置低电平???
|
|