![](/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:
- 50:e89647e77fd5
- Parent:
- 49:18f1354f9e51
- Child:
- 53:a1563574a980
--- a/xDotBridge/src/BaseboardIO.cpp Fri Feb 17 08:06:37 2017 -0700 +++ b/xDotBridge/src/BaseboardIO.cpp Fri Feb 17 11:58:40 2017 -0700 @@ -162,6 +162,11 @@ // When DIP switch is not closed (i.e. value reads high) assume P2P not WAN return (mPortExpanderVal1 & pEx1WanSel) == 0; } +bool BaseboardIO::isSerialEnabled() +{ + // When DIP switch is not closed (i.e. value reads high) assume not in serial mode + return (mPortExpanderVal1 & pEx1SerialEn) == 0; +} uint8_t BaseboardIO::rotarySwitch1() { // If a bit of a nibble is asserted then the port expander line is switched low.