From 2a6e3a89d3d299c9f4a8501e55bc92c6801981a3 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 31 Jul 2012 22:05:28 -0700 Subject: [PATCH] USB performance test firmware project. It does absolutely nothing to start with, but at least the Makefile I just checked in won't blow up! :-) --- firmware/usb_performance/Makefile | 10 ++++++++++ firmware/usb_performance/usb_performance.c | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 firmware/usb_performance/Makefile create mode 100644 firmware/usb_performance/usb_performance.c diff --git a/firmware/usb_performance/Makefile b/firmware/usb_performance/Makefile new file mode 100644 index 00000000..88f0f621 --- /dev/null +++ b/firmware/usb_performance/Makefile @@ -0,0 +1,10 @@ +# Hey Emacs, this is a -*- makefile -*- + +BINARY = usb_performance + +SRC = $(BINARY).c \ + ../common/hackrf_core.c \ + ../common/si5351c.c \ + ../common/bitband.c + +include ../common/Makefile_inc.mk diff --git a/firmware/usb_performance/usb_performance.c b/firmware/usb_performance/usb_performance.c new file mode 100644 index 00000000..d68b6dd0 --- /dev/null +++ b/firmware/usb_performance/usb_performance.c @@ -0,0 +1,22 @@ +#include + +#include + +int main(void) { + + pin_setup(); + enable_1v8_power(); + cpu_clock_init(); + + CGU_BASE_PERIPH_CLK = (CGU_BASE_CLK_AUTOBLOCK + | (CGU_SRC_PLL1 << CGU_BASE_CLK_SEL_SHIFT)); + + CGU_BASE_APB1_CLK = (CGU_BASE_CLK_AUTOBLOCK + | (CGU_SRC_PLL1 << CGU_BASE_CLK_SEL_SHIFT)); + + while (1) { + + } + + return 0; +}