zephyr/drivers/usb/device
Ulf Magnusson e833fafd4b drivers: usb: stm32: Fix broken DT_USB_ENABLE_PIN_REMAP test
'enable-pin-remap' is defined as 'type: boolean' in
dts/bindings/usb/st,stm32-usb.yaml, so it generates either

    #define DT_USB_ENABLE_PIN_REMAP 1

or

    #define DT_USB_ENABLE_PIN_REMAP 0

depending on if 'enable-pin-remap;' appears on the node or not.

Since a macro is always generated, #ifdef won't work. The test needs to
be this instead:

    #if DT_USB_ENABLE_PIN_REMAP == 1

(Should be careful with '#if HMZ == 0' though, because it's true even if
HMZ is undefined.)

This behavior was inherited from the old scripts, and some things depend
on it, e.g. by expanding macros in initializers.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-24 09:36:31 -07:00
..
CMakeLists.txt drivers: usb: nxp: add NXP EHCI USB device controller driver shim 2019-05-09 13:37:02 -05:00
Kconfig dts/Kconfig: Remove symbol HAS_DTC_USB 2019-09-12 08:16:42 -05:00
usb_dc_dw.c usb: remove QMSI include 2019-09-18 11:06:18 -05:00
usb_dc_kinetis.c cleanup: include/: move misc/byteorder.h to sys/byteorder.h 2019-06-27 22:55:49 -04:00
usb_dc_mcux_ehci.c drivers: usb: nxp: Add cache management 2019-06-17 16:25:06 -04:00
usb_dc_native_posix_adapt.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_native_posix_adapt.h usb: native_posix: Implement other then Control transfers 2019-02-01 19:03:12 -05:00
usb_dc_native_posix.c cleanup: include/: move misc/byteorder.h to sys/byteorder.h 2019-06-27 22:55:49 -04:00
usb_dc_nrfx.c drivers: usb_dc_nrfx: Use dedicated work queue for handling ISR events 2019-07-22 18:19:33 +02:00
usb_dc_sam0.c dts: Convert from DT_<COMPAT>_<INSTANCE>_<PROP> to DT_INST... 2019-06-14 08:02:15 -05:00
usb_dc_sam.c drivers: usb_dc_sam: validate pointer in usb_dc_ep_is_stalled 2019-09-08 12:35:23 +02:00
usb_dc_stm32.c drivers: usb: stm32: Fix broken DT_USB_ENABLE_PIN_REMAP test 2019-09-24 09:36:31 -07:00
usb_dw_registers.h boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00