fix some compiler warnings around USBH_DEBUG_ENABLE conditions
This commit is contained in:
parent
36ccd9f43a
commit
ca79ff2e87
|
@ -987,7 +987,7 @@ static inline void _hcint_int(USBHDriver *host) {
|
||||||
haint = host->otg->HAINT;
|
haint = host->otg->HAINT;
|
||||||
haint &= host->otg->HAINTMSK;
|
haint &= host->otg->HAINTMSK;
|
||||||
|
|
||||||
#if USBH_LLD_DEBUG_ENABLE_ERRORS
|
#if USBH_DEBUG_ENABLE && USBH_LLD_DEBUG_ENABLE_ERRORS
|
||||||
if (!haint) {
|
if (!haint) {
|
||||||
uint32_t a, b;
|
uint32_t a, b;
|
||||||
a = host->otg->HAINT;
|
a = host->otg->HAINT;
|
||||||
|
@ -1327,7 +1327,7 @@ static void usb_lld_serve_interrupt(USBHDriver *host) {
|
||||||
|
|
||||||
gintsts &= otg->GINTMSK;
|
gintsts &= otg->GINTMSK;
|
||||||
if (!gintsts) {
|
if (!gintsts) {
|
||||||
#if USBH_DEBUG_ENABLE_WARNINGS
|
#if USBH_DEBUG_ENABLE && USBH_DEBUG_ENABLE_WARNINGS
|
||||||
uint32_t a, b;
|
uint32_t a, b;
|
||||||
a = otg->GINTSTS;
|
a = otg->GINTSTS;
|
||||||
b = otg->GINTMSK;
|
b = otg->GINTMSK;
|
||||||
|
|
Loading…
Reference in New Issue