Add WM8731 registers view.

This commit is contained in:
Jared Boone 2015-12-14 12:09:31 -08:00
parent 24d60a11e3
commit 4ce27f51d4

View File

@ -168,7 +168,10 @@ DebugMenuView::DebugMenuView(NavigationView& nav) {
"Si5351C", RegistersWidgetConfig { 96, 2, 2, 8 }, "Si5351C", RegistersWidgetConfig { 96, 2, 2, 8 },
[](const size_t register_number) { return portapack::clock_generator.read_register(register_number); } [](const size_t register_number) { return portapack::clock_generator.read_register(register_number); }
); } }, ); } },
{ "WM8731", [&nav](){ nav.push<NotImplementedView>(); } }, { "WM8731", [&nav](){ nav.push<RegistersView>(
"WM8731", RegistersWidgetConfig { wolfson::wm8731::reg_count, 1, 3, 4 },
[](const size_t register_number) { return portapack::audio_codec.read(register_number); }
); } },
} }); } });
on_left = [&nav](){ nav.pop(); }; on_left = [&nav](){ nav.pop(); };
} }