usb: use new USB framework header

Replace all macros and types with the new ones from
usb/usb_ch9.h header.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-05-12 11:12:29 +02:00 committed by Carles Cufí
commit 6408d40fd6
21 changed files with 246 additions and 279 deletions

View file

@ -21,7 +21,7 @@
#ifndef ZEPHYR_INCLUDE_USB_CLASS_AUDIO_H_
#define ZEPHYR_INCLUDE_USB_CLASS_AUDIO_H_
#include <usb/usb_common.h>
#include <usb/usb_ch9.h>
#include <device.h>
#include <net/buf.h>
#include <sys/util.h>

View file

@ -32,6 +32,7 @@
/** Communications Class Protocol Codes */
#define AT_CMD_V250_PROTOCOL 0x01
#define EEM_PROTOCOL 0x07
#define ACM_VENDOR_PROTOCOL 0xFF
/**
* @brief Data Class Interface Codes

View file

@ -39,7 +39,7 @@
#define ZEPHYR_INCLUDE_USB_USB_DEVICE_H_
#include <drivers/usb/usb_dc.h>
#include <usb/usbstruct.h>
#include <usb/usb_ch9.h>
#include <logging/log.h>
#ifdef __cplusplus
@ -83,15 +83,6 @@ extern "C" {
* USB application interface
**************************************************************************/
/** setup packet definitions */
struct usb_setup_packet {
uint8_t bmRequestType; /**< characteristics of the specific request */
uint8_t bRequest; /**< specific request */
uint16_t wValue; /**< request specific parameter */
uint16_t wIndex; /**< request specific parameter */
uint16_t wLength; /**< length of data transferred in data phase */
};
/**
* @brief USB Device Core Layer API
* @defgroup _usb_device_core_api USB Device Core API