![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/src/BaseboardIO.cpp
- Revision:
- 74:dc969906f1f7
- Parent:
- 63:e1efbe3402d9
- Child:
- 75:600cb3a9f126
diff -r dc5adf462660 -r dc969906f1f7 xDotBridge/src/BaseboardIO.cpp --- a/xDotBridge/src/BaseboardIO.cpp Mon Apr 10 16:06:31 2017 -0600 +++ b/xDotBridge/src/BaseboardIO.cpp Thu May 04 11:32:24 2017 -0600 @@ -585,13 +585,18 @@ GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); } - if ((CCInPinName != GPIO3 && TamperPinName != GPIO3 && PairBtnPinName != GPIO3) - || dot->getWakeMode() == mDot::RTC_ALARM) { - GPIO_InitStruct.Pin = GPIO_PIN_2; - GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - GPIO_InitStruct.Pull = GPIO_NOPULL; - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - } + // Changed to always do pull down for now.. Should implement discrete pull on new rev +// if ((CCInPinName != GPIO3 && TamperPinName != GPIO3 && PairBtnPinName != GPIO3) +// || dot->getWakeMode() == mDot::RTC_ALARM) { +// GPIO_InitStruct.Pin = GPIO_PIN_2; +// GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; +// GPIO_InitStruct.Pull = GPIO_NOPULL; +// HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); +// } + + // Try doing nothing so that the GPIO3 is still and active output + + if ((CCInPinName != UART1_RX && TamperPinName != UART1_RX && PairBtnPinName != UART1_RX) || dot->getWakeMode() == mDot::RTC_ALARM) { GPIO_InitStruct.Pin = GPIO_PIN_10;