summaryrefslogtreecommitdiffstats
path: root/app/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/project.h')
-rw-r--r--app/project.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/project.h b/app/project.h
index ca623de..fcf16ce 100644
--- a/app/project.h
+++ b/app/project.h
@@ -34,6 +34,7 @@
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/cdc.h>
#include <libopencm3/usb/dfu.h>
+#include <libopencm3/usb/hid.h>
#include "id.h"
@@ -61,7 +62,9 @@
#include "prototypes.h"
//#define HZ 10000000
+
#define HW_CLOCK_HZ 10000000
+#define PTP_CLOCK_HZ 168000000
//#define HZ 167999973
//#define HZ 168000000
@@ -83,6 +86,11 @@
#define TRACE do { stdio_drain(); printf("%s:%d\r\n",__FUNCTION__,__LINE__); } while (0)
+static inline void compiler_mb (void)
+{
+ asm volatile ("":::"memory");
+}
+
extern const unsigned char almanac_alp[];
extern unsigned int almanac_alp_len;