From 93cf76b9d1b96f66b3e05089a758484c22880155 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 20 Feb 2018 22:59:00 +0000 Subject: [PATCH] stm32l1: syscfg: add USB pullup control definition On original stm32l1s, this internal pullup was out of spec, and not recommended for use. But the -A parts have this fixed, so make sure we can use it. --- include/libopencm3/stm32/l1/syscfg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libopencm3/stm32/l1/syscfg.h b/include/libopencm3/stm32/l1/syscfg.h index b2e4991d..d8ce0ae8 100644 --- a/include/libopencm3/stm32/l1/syscfg.h +++ b/include/libopencm3/stm32/l1/syscfg.h @@ -38,4 +38,7 @@ #include +/** Enable internal USB pullup iff USB periph is not powered down */ +#define SYSCFG_PMC_USB_PU (1<<0) + #endif