summaryrefslogtreecommitdiffstats
path: root/app/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/project.h')
-rw-r--r--app/project.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/app/project.h b/app/project.h
index d060a81..5785628 100644
--- a/app/project.h
+++ b/app/project.h
@@ -5,6 +5,14 @@
#include <string.h>
#include <strings.h>
#include <inttypes.h>
+
+/* Core */
+#include <libopencm3/cm3/systick.h>
+#include <libopencm3/cm3/nvic.h>
+#include <libopencm3/cm3/cortex.h>
+#include <libopencm3/cm3/scs.h>
+#include <libopencm3/cm3/scb.h>
+/* SoC */
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/usart.h>
@@ -16,14 +24,18 @@
#include <libopencm3/stm32/exti.h>
#include <libopencm3/stm32/pwr.h>
#include <libopencm3/stm32/timer.h>
+#include <libopencm3/stm32/syscfg.h>
+#include <libopencm3/stm32/otg_common.h>
+#include <libopencm3/stm32/otg_fs.h>
+/* Drivers */
#include <libopencm3/ethernet/mac_stm32fxx7.h>
#include <libopencm3/ethernet/phy.h>
-#include <libopencm3/stm32/syscfg.h>
-#include <libopencm3/cm3/systick.h>
-#include <libopencm3/cm3/nvic.h>
-#include <libopencm3/cm3/cortex.h>
-#include <libopencm3/cm3/scs.h>
-#include <libopencm3/cm3/scb.h>
+#include <libopencm3/usb/usbd.h>
+#include <libopencm3/usb/cdc.h>
+#ifdef INCLUDE_DFU_INTERFACE
+#include <libopencm3/usb/dfu.h>
+#endif
+
#include <lwip/init.h>
@@ -47,7 +59,7 @@
#include "prototypes.h"
//#define HZ 10000000
-#define HZ 10000000
+#define HW_CLOCK_HZ 10000000
//#define HZ 167999973
//#define HZ 168000000
@@ -72,3 +84,5 @@
extern const unsigned char almanac_alp[];
extern unsigned int almanac_alp_len;
+#define ID_VENDOR 0x0483
+#define ID_PRODUCT 0x5740