mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Refine the preprocessor conditional guard style (#190)
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __DRIVERS_USBDEV_CDCACM_H
|
||||
#define __DRIVERS_USBDEV_CDCACM_H 1
|
||||
#define __DRIVERS_USBDEV_CDCACM_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __DRIVERS_USBDEV_COMPOSITE_H
|
||||
#define __DRIVERS_USBDEV_COMPOSITE_H 1
|
||||
#define __DRIVERS_USBDEV_COMPOSITE_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
||||
@@ -947,7 +947,7 @@ static int16_t usbclass_mkcfgdesc(uint8_t *buf)
|
||||
memcpy(cfgdesc, &g_cfgdesc, USB_SIZEOF_CFGDESC);
|
||||
buf += USB_SIZEOF_CFGDESC;
|
||||
|
||||
/* Copy the canned interface descriptor */
|
||||
/* Copy the canned interface descriptor */
|
||||
|
||||
memcpy(buf, &g_ifdesc, USB_SIZEOF_IFDESC);
|
||||
buf += USB_SIZEOF_IFDESC;
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
# define USBMSC_SELFPOWERED (0)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USBDEV_REMOTEWAKEUP
|
||||
#ifdef CONFIG_USBDEV_REMOTEWAKEUP
|
||||
# define USBMSC_REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
|
||||
#else
|
||||
# define USBMSC_REMOTEWAKEUP (0)
|
||||
|
||||
Reference in New Issue
Block a user