aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorAustin Morton <austinpmorton@gmail.com>2017-07-18 01:02:34 -0400
committerAustin Morton <austinpmorton@gmail.com>2018-10-01 17:55:08 -0400
commitca79ff2e87ed8b483cf7c889ec7225d9703bc2da (patch)
tree5d054723efac05aeddc1051f540cab81cd3be276 /os/hal
parent36ccd9f43a5e090bdf1796f121e155b3a8135fbe (diff)
downloadChibiOS-Contrib-ca79ff2e87ed8b483cf7c889ec7225d9703bc2da.tar.gz
ChibiOS-Contrib-ca79ff2e87ed8b483cf7c889ec7225d9703bc2da.tar.bz2
ChibiOS-Contrib-ca79ff2e87ed8b483cf7c889ec7225d9703bc2da.zip
fix some compiler warnings around USBH_DEBUG_ENABLE conditions
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c b/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c
index 226f1bb..a0583a6 100644
--- a/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c
+++ b/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c
@@ -987,7 +987,7 @@ static inline void _hcint_int(USBHDriver *host) {
haint = host->otg->HAINT;
haint &= host->otg->HAINTMSK;
-#if USBH_LLD_DEBUG_ENABLE_ERRORS
+#if USBH_DEBUG_ENABLE && USBH_LLD_DEBUG_ENABLE_ERRORS
if (!haint) {
uint32_t a, b;
a = host->otg->HAINT;
@@ -1327,7 +1327,7 @@ static void usb_lld_serve_interrupt(USBHDriver *host) {
gintsts &= otg->GINTMSK;
if (!gintsts) {
-#if USBH_DEBUG_ENABLE_WARNINGS
+#if USBH_DEBUG_ENABLE && USBH_DEBUG_ENABLE_WARNINGS
uint32_t a, b;
a = otg->GINTSTS;
b = otg->GINTMSK;