From 8c7ee88332652e7e79f6c1e4baacabe2183f7e8e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Mar 2021 12:54:03 +0000 Subject: working, with hybrid FLL/PLL, new refclk input and support for max7219 displays, neo 5 and neo 7 and a bazillion other fixes --- app/project.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/project.h') 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 #include #include +#include #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; -- cgit v1.2.3