mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/usbus: define the number of required EPs for each class
To be able to check during compilation that the number of endpoints provided by a USB peripheral is not exceeded, each interface class has to define the number of IN and OUT endpoints it requires.
This commit is contained in:
parent
2b225c4ab1
commit
6d273e7966
@ -83,6 +83,16 @@ extern "C" {
|
||||
#define USB_HID_REQUEST_SET_PROTOCOL 0x0b
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the HID interface
|
||||
*/
|
||||
#define USBUS_HID_EP_IN_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief Number of Out EPs required for the HID interface
|
||||
*/
|
||||
#define USBUS_HID_EP_OUT_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief USB HID descriptor struct
|
||||
*
|
||||
|
@ -89,6 +89,16 @@ extern "C" {
|
||||
*/
|
||||
#define USBUS_CDC_ACM_INT_EP_SIZE (8)
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the CDC ACM interface
|
||||
*/
|
||||
#define USBUS_CDC_ACM_EP_IN_REQUIRED_NUMOF 2
|
||||
|
||||
/**
|
||||
* @brief Number of Out EPs required for the CDC ACM interface
|
||||
*/
|
||||
#define USBUS_CDC_ACM_EP_OUT_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief CDC ACM line state as reported by the host computer
|
||||
*/
|
||||
|
@ -87,6 +87,16 @@ extern "C" {
|
||||
*/
|
||||
#define USBUS_ETHERNET_FRAME_BUF MATH_ALIGN(ETHERNET_FRAME_LEN, USBUS_CDCECM_EP_DATA_SIZE)
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the CDC ECM interface
|
||||
*/
|
||||
#define USBUS_CDC_ECM_EP_IN_REQUIRED_NUMOF 2
|
||||
|
||||
/**
|
||||
* @brief Number of Out EPs required for the CDC ECM interface
|
||||
*/
|
||||
#define USBUS_CDC_ECM_EP_OUT_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief notification state, used to track which information must be send to
|
||||
* the host
|
||||
|
@ -21,6 +21,16 @@
|
||||
#ifndef USB_USBUS_CONTROL_H
|
||||
#define USB_USBUS_CONTROL_H
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the control interface
|
||||
*/
|
||||
#define USBUS_CONTROL_EP_IN_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the control interface
|
||||
*/
|
||||
#define USBUS_CONTROL_EP_OUT_REQUIRED_NUMOF 1
|
||||
|
||||
#include "usb/usbus.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -31,6 +31,16 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Number of IN EPs required for the MSC interface
|
||||
*/
|
||||
#define USBUS_MSC_EP_IN_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief Number of Out EPs required for the MSC interface
|
||||
*/
|
||||
#define USBUS_MSC_EP_OUT_REQUIRED_NUMOF 1
|
||||
|
||||
/**
|
||||
* @brief USBUS MSC Number of exported MTD device through USB
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user