From 8a5c02b6d63f21c986ac5613e2fa6d320f6451a1 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 8 Mar 2020 08:49:28 +0000 Subject: [PATCH] Added missing USB definitions. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13400 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/mcuconf.h | 8 ++++++++ testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h | 8 ++++++++ .../ftl/processors/conf/mcuconf_stm32l07xxx/mcuconf.h.ftl | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/mcuconf.h b/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/mcuconf.h index e6c235f45..9fe0dc7a9 100644 --- a/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32L073RZ-NUCLEO64/cfg/mcuconf.h @@ -226,6 +226,14 @@ #define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7) #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") +/* + * USB driver system settings. + */ +#define STM32_USB_USE_USB1 TRUE +#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE +#define STM32_USB_USB1_HP_IRQ_PRIORITY 0 +#define STM32_USB_USB1_LP_IRQ_PRIORITY 0 + /* * WDG driver system settings. */ diff --git a/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h b/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h index e6c235f45..9fe0dc7a9 100644 --- a/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h +++ b/testhal/STM32/STM32L0xx/USB_CDC/mcuconf.h @@ -226,6 +226,14 @@ #define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7) #define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure") +/* + * USB driver system settings. + */ +#define STM32_USB_USE_USB1 TRUE +#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE +#define STM32_USB_USB1_HP_IRQ_PRIORITY 0 +#define STM32_USB_USB1_LP_IRQ_PRIORITY 0 + /* * WDG driver system settings. */ diff --git a/tools/ftl/processors/conf/mcuconf_stm32l07xxx/mcuconf.h.ftl b/tools/ftl/processors/conf/mcuconf_stm32l07xxx/mcuconf.h.ftl index ffbef5307..1d60a7611 100644 --- a/tools/ftl/processors/conf/mcuconf_stm32l07xxx/mcuconf.h.ftl +++ b/tools/ftl/processors/conf/mcuconf_stm32l07xxx/mcuconf.h.ftl @@ -237,6 +237,14 @@ #define STM32_UART_UART5_TX_DMA_STREAM ${doc.STM32_UART_UART5_TX_DMA_STREAM!"STM32_DMA_STREAM_ID(1, 7)"} #define STM32_UART_DMA_ERROR_HOOK(uartp) ${doc.STM32_UART_DMA_ERROR_HOOK!"osalSysHalt(\"DMA failure\")"} +/* + * USB driver system settings. + */ +#define STM32_USB_USE_USB1 ${doc.STM32_USB_USE_USB1!"TRUE"} +#define STM32_USB_LOW_POWER_ON_SUSPEND ${doc.STM32_USB_LOW_POWER_ON_SUSPEND!"FALSE"} +#define STM32_USB_USB1_HP_IRQ_PRIORITY ${doc.STM32_USB_USB1_HP_IRQ_PRIORITY!"0"} +#define STM32_USB_USB1_LP_IRQ_PRIORITY ${doc.STM32_USB_USB1_LP_IRQ_PRIORITY!"0"} + /* * WDG driver system settings. */