nes-proj/arch/cpu/cc2538/usb/common/usb-core.h
George Oikonomou 8050864226 Move USB sourcefiles to the CC2538 CPU dir
Previously, the CC2538 port would compile USB-related files from their original location under the CC2531 CPU dir. We are now removing the latter, but we need to keep those files.
2017-10-10 21:04:23 +02:00

20 lines
483 B
C

#ifndef USB_CORE_H_YIKJDA7S1X__
#define USB_CORE_H_YIKJDA7S1X__
#include <stdint.h>
extern 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__ */