[Horus] Fix LED off
This commit is contained in:
@@ -35,7 +35,15 @@ void ledInit()
|
|||||||
|
|
||||||
void ledOff()
|
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()
|
void ledRed()
|
||||||
|
|||||||
Reference in New Issue
Block a user