Refactoring around trainer

This commit is contained in:
Bertrand Songis
2019-06-04 15:15:31 +02:00
parent e608efdb76
commit a5575725ea
9 changed files with 160 additions and 65 deletions
+4 -4
View File
@@ -53,11 +53,11 @@ void pwrInit()
GPIO_Init(TRAINER_DETECT_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;
#if defined(INTMODULE_USART) && defined(TRAINER_MODULE_CPPM_GPIO_PIN)
GPIO_SetBits(TRAINER_MODULE_CPPM_GPIO, TRAINER_MODULE_CPPM_GPIO_PIN);
GPIO_InitStructure.GPIO_Pin = TRAINER_MODULE_CPPM_GPIO_PIN;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(HEARTBEAT_GPIO, &GPIO_InitStructure);
GPIO_Init(TRAINER_MODULE_CPPM_GPIO, &GPIO_InitStructure);
#endif
pwrOn();