headers: Fix headers across the project
Any word started with underscore followed by and uppercase letter or a second underscore is a reserved word according with C99. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a7fffa9e00
commit
67ca176754
505 changed files with 1463 additions and 1458 deletions
|
@ -18,8 +18,8 @@
|
|||
* Header is limited to ACM and ECM Subclasses.
|
||||
*/
|
||||
|
||||
#ifndef __USB_CDC_H__
|
||||
#define __USB_CDC_H__
|
||||
#ifndef ZEPHYR_INCLUDE_USB_CLASS_USB_CDC_H_
|
||||
#define ZEPHYR_INCLUDE_USB_CLASS_USB_CDC_H_
|
||||
|
||||
/** CDC Specification release number in BCD format */
|
||||
#define CDC_SRN_1_20 0x0120
|
||||
|
@ -162,4 +162,4 @@ struct cdc_ecm_descriptor {
|
|||
u8_t bNumberPowerFilters;
|
||||
} __packed;
|
||||
|
||||
#endif /* __USB_CDC_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_CLASS_USB_CDC_H_ */
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
* Device Firmware Upgrade Version 1.1
|
||||
*/
|
||||
|
||||
#ifndef __USB_DFU_H__
|
||||
#define __USB_DFU_H__
|
||||
#ifndef ZEPHYR_INCLUDE_USB_CLASS_USB_DFU_H_
|
||||
#define ZEPHYR_INCLUDE_USB_CLASS_USB_DFU_H_
|
||||
|
||||
/** DFU Class Subclass */
|
||||
#define DFU_SUBCLASS 0x01
|
||||
|
@ -119,4 +119,4 @@ enum dfu_state {
|
|||
dfuERROR,
|
||||
};
|
||||
|
||||
#endif /* __USB_DFU_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_CLASS_USB_DFU_H_ */
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
* Version 1.11 document (HID1_11-1.pdf).
|
||||
*/
|
||||
|
||||
#ifndef __USB_HID_H__
|
||||
#define __USB_HID_H__
|
||||
#ifndef ZEPHYR_INCLUDE_USB_CLASS_USB_HID_H_
|
||||
#define ZEPHYR_INCLUDE_USB_CLASS_USB_HID_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -170,4 +170,4 @@ int usb_hid_init(void);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __USB_HID_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_CLASS_USB_HID_H_ */
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
* Header is limited to Bulk-Only Transfer protocol.
|
||||
*/
|
||||
|
||||
#ifndef __USB_MSC_H__
|
||||
#define __USB_MSC_H__
|
||||
#ifndef ZEPHYR_INCLUDE_USB_CLASS_USB_MSC_H_
|
||||
#define ZEPHYR_INCLUDE_USB_CLASS_USB_MSC_H_
|
||||
|
||||
/** MSC Subclass and Protocol Codes */
|
||||
#define SCSI_TRANSPARENT_SUBCLASS 0x06
|
||||
|
@ -106,4 +106,4 @@ struct CSW {
|
|||
#define MODE_SELECT10 0x55
|
||||
#define MODE_SENSE10 0x5A
|
||||
|
||||
#endif /* __USB_MSC_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_CLASS_USB_MSC_H_ */
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
|
||||
#include <version.h>
|
||||
|
||||
#ifndef USB_COMMON_H_
|
||||
#define USB_COMMON_H_
|
||||
#ifndef ZEPHYR_INCLUDE_USB_USB_COMMON_H_
|
||||
#define ZEPHYR_INCLUDE_USB_USB_COMMON_H_
|
||||
|
||||
#define BCD(x) ((((x) / 10) << 4) | ((x) / 10))
|
||||
|
||||
|
@ -198,4 +198,4 @@ struct usb_ep_descriptor {
|
|||
u8_t bInterval;
|
||||
} __packed;
|
||||
|
||||
#endif /* USB_COMMON_H_ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_USB_COMMON_H_ */
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
* This file contains the USB device core layer APIs and structures.
|
||||
*/
|
||||
|
||||
#ifndef USB_DEVICE_H_
|
||||
#define USB_DEVICE_H_
|
||||
#ifndef ZEPHYR_INCLUDE_USB_USB_DEVICE_H_
|
||||
#define ZEPHYR_INCLUDE_USB_USB_DEVICE_H_
|
||||
|
||||
#include <drivers/usb/usb_dc.h>
|
||||
#include <usb/usbstruct.h>
|
||||
|
@ -425,4 +425,4 @@ void usb_cancel_transfer(u8_t ep);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* USB_DEVICE_H_ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_USB_DEVICE_H_ */
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
* This file contains structures and defines of the standard USB packets
|
||||
*/
|
||||
|
||||
#ifndef _USBSTRUCT_H_
|
||||
#define _USBSTRUCT_H_
|
||||
#ifndef ZEPHYR_INCLUDE_USB_USBSTRUCT_H_
|
||||
#define ZEPHYR_INCLUDE_USB_USBSTRUCT_H_
|
||||
|
||||
#define REQTYPE_GET_DIR(x) (((x)>>7)&0x01)
|
||||
#define REQTYPE_GET_TYPE(x) (((x)>>5)&0x03)
|
||||
|
@ -96,4 +96,4 @@ struct usb_desc_header {
|
|||
#define GET_DESC_TYPE(x) (((x)>>8)&0xFF)
|
||||
#define GET_DESC_INDEX(x) ((x)&0xFF)
|
||||
|
||||
#endif /* _USBSTRUCT_H_ */
|
||||
#endif /* ZEPHYR_INCLUDE_USB_USBSTRUCT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue