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! :-)
This commit is contained in:
10
firmware/usb_performance/Makefile
Normal file
10
firmware/usb_performance/Makefile
Normal file
@ -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
|
22
firmware/usb_performance/usb_performance.c
Normal file
22
firmware/usb_performance/usb_performance.c
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#include <hackrf_core.h>
|
||||||
|
|
||||||
|
#include <libopencm3/lpc43xx/cgu.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Reference in New Issue
Block a user