[Horus] Fix LED off

This commit is contained in:
Andre Bernet
2016-02-21 17:39:07 +04:00
parent 5827b0fd6c
commit 22a8a5cc80
+9 -1
View File
@@ -35,7 +35,15 @@ void ledInit()
void ledOff()
{
RCC_AHB1PeriphClockCmd(LED_RCC_AHB1Periph, DISABLE);
RCC_AHB1PeriphClockCmd(LED_RCC_AHB1Periph, ENABLE);
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Pin = LED_GPIO_PIN;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(LED_GPIO, &GPIO_InitStructure);
}
void ledRed()