BootCmd should be always high

This commit is contained in:
Bertrand Songis
2019-05-06 11:23:51 +02:00
parent a3fe388399
commit 05596fec9e
3 changed files with 12 additions and 4 deletions
+9 -2
View File
@@ -54,12 +54,19 @@ void pwrInit()
#endif
#if defined(INTMODULE_BOOTCMD_GPIO)
GPIO_ResetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
GPIO_SetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
GPIO_InitStructure.GPIO_Pin = INTMODULE_BOOTCMD_GPIO_PIN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(INTMODULE_BOOTCMD_GPIO, &GPIO_InitStructure);
#endif
#if defined(INTMODULE_USART) && defined(HEARTBEAT_GPIO_PIN)
GPIO_SetBits(HEARTBEAT_GPIO, HEARTBEAT_GPIO_PIN);
GPIO_InitStructure.GPIO_Pin = HEARTBEAT_GPIO_PIN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(HEARTBEAT_GPIO, &GPIO_InitStructure);
#endif
pwrOn();
}