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; +}