aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/apps/hardware_testbed.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/apps/hardware_testbed.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/apps/hardware_testbed.c')
-rw-r--r--firmware/zpu/apps/hardware_testbed.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/firmware/zpu/apps/hardware_testbed.c b/firmware/zpu/apps/hardware_testbed.c
deleted file mode 100644
index e68e68ff7..000000000
--- a/firmware/zpu/apps/hardware_testbed.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2010 Ettus Research LLC
- *
- */
-
-#include <memory_map.h>
-#include <nonstdio.h>
-#include <hal_io.h>
-#include <xilinx_s3_icap.h>
-#include <spi_flash.h>
-//#include <spi_flash_private.h>
-#include <clocks.h>
-#include <ihex.h>
-#include <bootloader_utils.h>
-#include <string.h>
-#include <hal_uart.h>
-#include <spi.h>
-
-//so this is just an evolving file used to set up and test different bits of hardware (EEPROM, clock chip, A/D, D/A, PHY)
-void delay(uint32_t t) {
- while(t-- != 0) asm("NOP");
-}
-
-int main(int argc, char *argv[]) {
-
- hal_disable_ints();
- hal_uart_init();
- spi_init();
-
- puts("Hardware testbed. Init clocks...");
-
- clocks_init();
-
- //now, hopefully, we should be running at 100MHz instead of 50MHz, meaning our UART is twice as fast and we're talking at 230400.
-
- while(1) {
- delay(500000);
- puts("Eat at Joe's.");
- }
-
-
-
-
-
- return 0;
-}