aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/usrp2p/bootloader/icap_test.c
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2011-04-22 11:28:27 -0700
committerNick Foster <nick@nerdnetworks.org>2011-04-22 11:28:27 -0700
commit361300327fceb20a5256cc9c5e5c6096cdbcd014 (patch)
treed740ba064a1e42b2057484bcc325e9c045cc1fa3 /firmware/zpu/usrp2p/bootloader/icap_test.c
parent3dd74062fc6cfad68a62faac6669bada96f3aecf (diff)
downloaduhd-361300327fceb20a5256cc9c5e5c6096cdbcd014.tar.gz
uhd-361300327fceb20a5256cc9c5e5c6096cdbcd014.tar.bz2
uhd-361300327fceb20a5256cc9c5e5c6096cdbcd014.zip
N210: TXRX_UHD now has bootloader #ifdef'ed into it. Safe firmware now embedded into FPGA bootloader.
Also did some cleanup of unused source files and consolidated bootloader stuff into bootloader_utils.
Diffstat (limited to 'firmware/zpu/usrp2p/bootloader/icap_test.c')
-rw-r--r--firmware/zpu/usrp2p/bootloader/icap_test.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/firmware/zpu/usrp2p/bootloader/icap_test.c b/firmware/zpu/usrp2p/bootloader/icap_test.c
deleted file mode 100644
index 5feb9d014..000000000
--- a/firmware/zpu/usrp2p/bootloader/icap_test.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2010 Ettus Research LLC
- *
- */
-
-#include <memory_map.h>
-#include <hal_io.h>
-#include <xilinx_s3_icap.h>
-#include <nonstdio.h>
-
-void delay(uint32_t t) {
- while(t-- != 0) asm("NOP");
-}
-
-
-int main(int argc, char *argv[]) {
- pic_init();
- hal_uart_init();
- puts("\nStarting delay...\n");
-
- output_regs->leds = 0xFF;
- delay(4000000);
- output_regs->leds = 0x00;
- delay(4000000);
-
- puts("Rebooting FPGA to 0x00000000\n");
- icap_reload_fpga((uint32_t)0x00000000);
-
- return 0;
-}