[X7] S.PORT devices update is now done on the bottom connector (#4457)
* [X7] S.PORT devices update is now done on the bottom connector * [X7] I introduce a PCBREV option, as previous versions didn't have this S.PORT bottom connector * [X7] Introduce a PCBREV PIN to avoid having different 2 different firmware on X7 * Compilation fix * [X7] PCBREV PIN was inverted * [X7] PULL DOWN on PCBREV PIN * S.PORT bottom connector is powered by PB.02, not PB.01 * [X7] PCBREV resistor changed * [X7] PCBREV resistor changed
This commit is contained in:
@@ -47,7 +47,15 @@ void pwrInit()
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = TRAINER_DETECT_GPIO_PIN;
|
||||
GPIO_Init(TRAINER_DETECT_GPIO, &GPIO_InitStructure);
|
||||
|
||||
|
||||
#if defined(PCBX7)
|
||||
// Init PCBREV PIN
|
||||
GPIO_ResetBits(PCBREV_GPIO, PCBREV_GPIO_PIN);
|
||||
GPIO_InitStructure.GPIO_Pin = PCBREV_GPIO_PIN;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
|
||||
GPIO_Init(PCBREV_GPIO, &GPIO_InitStructure);
|
||||
#endif
|
||||
|
||||
pwrOn();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user