summaryrefslogtreecommitdiffstats
path: root/app/project.h
diff options
context:
space:
mode:
authorroot <root@ka-ata-killa.ourano.james.local>2021-03-02 12:54:03 +0000
committerroot <root@ka-ata-killa.ourano.james.local>2021-03-02 12:54:03 +0000
commit8c7ee88332652e7e79f6c1e4baacabe2183f7e8e (patch)
treea26ca60a089015822fa81ef44567927c1d8e334d /app/project.h
parent3d48137c00511b3f2d35511482d1a76f8d06382d (diff)
downloadclock-8c7ee88332652e7e79f6c1e4baacabe2183f7e8e.tar.gz
clock-8c7ee88332652e7e79f6c1e4baacabe2183f7e8e.tar.bz2
clock-8c7ee88332652e7e79f6c1e4baacabe2183f7e8e.zip
working, with hybrid FLL/PLL, new refclk input and support for max7219 displays, neo 5 and neo 7 and a bazillion other fixes
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;