From a2f0269a1e73b1464265884b73a0ca39a8d01fc0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 4 Aug 2017 13:18:31 -0700 Subject: mpm: n3xx: Change default state for TCA GPIOs This makes the GPS reset go high by default (i.e., takes it out of reset by default) and the init survey pin go high (i.e., take it out of survey mode). --- mpm/python/usrp_mpm/periph_manager/n310.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mpm/python/usrp_mpm/periph_manager/n310.py b/mpm/python/usrp_mpm/periph_manager/n310.py index aed76c596..695a4573b 100644 --- a/mpm/python/usrp_mpm/periph_manager/n310.py +++ b/mpm/python/usrp_mpm/periph_manager/n310.py @@ -71,7 +71,9 @@ class TCA6424(object): ) def __init__(self): - self._gpios = SysFSGPIO('tca6424', 0xFFE7FF, 0x86E7FF, 0x1) + # Default state: Turn on GPS power, take GPS out of reset or + # init-survey, turn on 156.25 MHz clock + self._gpios = SysFSGPIO('tca6424', 0xFFE7FF, 0x86E7FF, 0x860001) def set(self, name, value=None): """ -- cgit v1.2.3