Common USB functionality
This commit is contained in:
parent
44a83a12cd
commit
2c029597a1
10 changed files with 1246 additions and 0 deletions
23
cpu/arm/common/usb/usb-core.h
Normal file
23
cpu/arm/common/usb/usb-core.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef __USB_CORE_H__YIKJDA7S1X__
|
||||
#define __USB_CORE_H__YIKJDA7S1X__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct USB_request_st usb_setup_buffer;
|
||||
|
||||
void
|
||||
usb_send_ctrl_response(const uint8_t *data, unsigned int len);
|
||||
|
||||
void
|
||||
usb_error_stall();
|
||||
|
||||
void
|
||||
usb_send_ctrl_status();
|
||||
|
||||
typedef void (*usb_ctrl_data_callback)(uint8_t *data, unsigned int length);
|
||||
|
||||
void
|
||||
usb_get_ctrl_data(uint8_t *data, unsigned int length,
|
||||
usb_ctrl_data_callback cb);
|
||||
|
||||
#endif /* __USB_CORE_H__YIKJDA7S1X__ */
|
Loading…
Add table
Add a link
Reference in a new issue