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:
Jared Boone
2012-07-31 22:05:28 -07:00
parent 33617e6701
commit 2a6e3a89d3
2 changed files with 32 additions and 0 deletions

View 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

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