diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-15 10:28:16 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-15 10:28:16 -0700 |
commit | 77481462d160e00ca6664bbbacad90a3253e47eb (patch) | |
tree | c77fe3f82e0841f15cec7bc7c458afa680ce8730 /firmware/zpu/usrp2p/bootloader/init_bootloader.c | |
parent | b3d6f86d38f8e7d9d06f8c057614fd034b78ef86 (diff) | |
download | uhd-77481462d160e00ca6664bbbacad90a3253e47eb.tar.gz uhd-77481462d160e00ca6664bbbacad90a3253e47eb.tar.bz2 uhd-77481462d160e00ca6664bbbacad90a3253e47eb.zip |
usrp2: common memory map, define slave bases in different headers
Diffstat (limited to 'firmware/zpu/usrp2p/bootloader/init_bootloader.c')
-rw-r--r-- | firmware/zpu/usrp2p/bootloader/init_bootloader.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/firmware/zpu/usrp2p/bootloader/init_bootloader.c b/firmware/zpu/usrp2p/bootloader/init_bootloader.c index f8b432c46..4ae634fb7 100644 --- a/firmware/zpu/usrp2p/bootloader/init_bootloader.c +++ b/firmware/zpu/usrp2p/bootloader/init_bootloader.c @@ -1,8 +1,19 @@ -/* -*- c++ -*- */ -/* - * Copyright 2010-2011 Ettus Research LLC - * - */ +// +// Copyright 2010-2011 Ettus Research LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// #include <memory_map.h> #include <nonstdio.h> @@ -10,7 +21,6 @@ #include <xilinx_s3_icap.h> #include <spi_flash.h> #include <spi_flash_private.h> -//#include <clocks.h> #include <mdelay.h> #include <ihex.h> #include <bootloader_utils.h> @@ -19,12 +29,7 @@ #include <i2c.h> #include "usrp2/fw_common.h" -//void pic_interrupt_handler() __attribute__ ((interrupt_handler)); - -void pic_interrupt_handler() -{ - // nop stub -} +#define BUTTON_PUSHED ((router_status->irqs & PIC_BUTTON) ? 0 : 1) void load_ihex(void) { //simple IHEX parser to load proper records into RAM. loads program when it receives end of record. char buf[128]; //input data buffer |