mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 12:42:19 -04:00
JTAG: Report if HackRF CPLD bitstream matches released version.
TODO: Could be better reporting (CRC?), and could not pause while checking CPLD EEPROM, and could offer a means to program the bitstream if it doesn't match...
This commit is contained in:
parent
204408d288
commit
3f3fe3bb67
2 changed files with 16 additions and 2 deletions
|
@ -28,6 +28,8 @@ using namespace lpc43xx;
|
|||
#include "portapack.hpp"
|
||||
using portapack::receiver_model;
|
||||
|
||||
#include "cpld_update.hpp"
|
||||
|
||||
namespace ui {
|
||||
|
||||
SetDateTimeView::SetDateTimeView(
|
||||
|
@ -172,10 +174,17 @@ AboutView::AboutView(NavigationView& nav) {
|
|||
&text_title,
|
||||
&text_firmware,
|
||||
&text_cpld_hackrf,
|
||||
&text_cpld_hackrf_status,
|
||||
&button_ok,
|
||||
} });
|
||||
|
||||
button_ok.on_select = [&nav](Button&){ nav.pop(); };
|
||||
|
||||
if( cpld_hackrf_verify_eeprom() ) {
|
||||
text_cpld_hackrf_status.set(" OK");
|
||||
} else {
|
||||
text_cpld_hackrf_status.set("BAD");
|
||||
}
|
||||
}
|
||||
|
||||
void AboutView::focus() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue