From 025ffdce3475585b3f65e955af32afbab9181e13 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 9 Sep 2019 16:29:32 -0700 Subject: mpm: Move common mboard regs code to common location This assumes an existence of mboard_regs_control in PeriphManagerBase and implements most TK controls there. All the *_periphs.py files can now use a common class for registers, including the TK access, but also git hash, build date, and device ID access. This also fixes two issues: - set_timekeeper_time() and set_tick_period() had a bug that would incorrectly calculate the upper 32 bits of their respective registers. - N3xx had a bug that would swap around set time now and next PPS. This got auto-fixed because the common code never had this bug. --- mpm/python/usrp_mpm/periph_manager/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'mpm/python/usrp_mpm/periph_manager/CMakeLists.txt') diff --git a/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt b/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt index 987bc184b..4f8520c12 100644 --- a/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt +++ b/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt @@ -11,6 +11,7 @@ set(USRP_MPM_FILES ${USRP_MPM_FILES}) set(USRP_MPM_PERIPHMGR_FILES ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in ${CMAKE_CURRENT_SOURCE_DIR}/base.py + ${CMAKE_CURRENT_SOURCE_DIR}/common.py ${CMAKE_CURRENT_SOURCE_DIR}/n3xx.py ${CMAKE_CURRENT_SOURCE_DIR}/n3xx_periphs.py ${CMAKE_CURRENT_SOURCE_DIR}/e320.py -- cgit v1.2.3