|
|
@@ -15,11 +15,13 @@ void GPIOA_Init(void)
|
|
|
#endif
|
|
|
|
|
|
#if BC260Y
|
|
|
-// GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
|
|
|
-// GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
|
|
|
-// GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
|
|
-// GPIO_Init(WAKE_GPIO, &GPIO_InitStructure);
|
|
|
-// GPIO_SetBits(WAKE_GPIO, WAKE_GPIO_Pin); // nbÀµÍ
|
|
|
+ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
|
|
|
+ GPIO_InitTypeDef GPIO_InitStructure;
|
|
|
+ GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;
|
|
|
+ GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
|
|
|
+ GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
|
|
+ GPIO_Init(GPIOA, &GPIO_InitStructure);
|
|
|
+ GPIO_ResetBits(GPIOA, GPIO_Pin_7); // nbÀµÍ
|
|
|
|
|
|
#endif
|
|
|
}
|