From e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 2 Apr 2020 14:11:51 -0700 Subject: b200: Add a prop tree node usb_version At /mboards/0/usb_version, we can now read back an int. It's either 2 or 3, depending on what we're using. --- host/lib/usrp/b200/b200_impl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/usrp/b200') diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 1da682349..fd8fd6500 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -483,6 +483,7 @@ b200_impl::b200_impl( } // flush ctrl xport _tree->create(mb_path / "link_max_rate") .set((usb_speed == 3) ? B200_MAX_RATE_USB3 : B200_MAX_RATE_USB2); + _tree->create(mb_path / "usb_version").set(usb_speed); //////////////////////////////////////////////////////////////////// // Async task structure -- cgit v1.2.3