Rework to make use of declared memory map regions.

This commit is contained in:
Jared Boone 2015-08-20 17:11:08 -07:00
parent 05690b20ed
commit 1c3e45917c
6 changed files with 20 additions and 10 deletions

View file

@ -151,7 +151,7 @@ HackRFFirmwareView::HackRFFirmwareView(NavigationView& nav) {
button_yes.on_select = [&nav](Button&){
shutdown();
m4_init(spi_flash::hackrf, reinterpret_cast<void*>(0x10000000));
m4_init(spi_flash::hackrf, memory::map::m4_code_hackrf);
while(true) {
__WFE();