初级会员

- 积分
- 130
- 金钱
- 130
- 注册时间
- 2019-10-16
- 在线时间
- 54 小时
|

楼主 |
发表于 2020-12-1 11:12:13
|
显示全部楼层
我是在USB_init里面加的
void USB_Init(void)
{
//测试D+口加上拉
GPIO_InitTypeDef GPIO_InitStruct;
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_12;
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF_OD;
GPIO_Init(GPIOA, &GPIO_InitStruct);
pInformation = &Device_Info;
pInformation->ControlState = 2;
pProperty = &Device_Property;
pUser_Standard_Requests = &User_Standard_Requests;
/* Initialize devices one by one */
pProperty->Init();
} |
|