diff options
author | root <root@lab.ourano.james.local> | 2021-02-25 19:12:38 +0000 |
---|---|---|
committer | root <root@lab.ourano.james.local> | 2021-02-25 19:12:38 +0000 |
commit | 6d3a824e1cdae6e28146b7de380724b49488f3c2 (patch) | |
tree | b8865608c9749e4251b316b74484b5151f2e683b /app/project.h | |
parent | 0548136a4c886830414fb575d9d0daa7f1a7d170 (diff) | |
download | clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.gz clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.tar.bz2 clock-6d3a824e1cdae6e28146b7de380724b49488f3c2.zip |
tim
Diffstat (limited to 'app/project.h')
-rw-r--r-- | app/project.h | 28 |
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 |