diff options
| author | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-12-09 11:15:13 +0700 |
| commit | e320659f8a4869a81e656285ed1263d8515aa7ee (patch) | |
| tree | bf355e111ebfc710bf3c30a31919e6f98542bf2b /tinyusb/device/usbd.h | |
| parent | 1ad78f104ed87957bd4cf7e15029ab3e4e3cb377 (diff) | |
add keyboard led mask
make usbd control request to subtask
add get/set report via control pipe to hidd
enforce soft DMA to control pipe for lpc11u (lpc17xx not yet)
temp add led_blinking_set_interval to change led blinking interval
refractor dcd_pipe_control_xfer to have interrupt on complete option
add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
Diffstat (limited to 'tinyusb/device/usbd.h')
| -rw-r--r-- | tinyusb/device/usbd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 12b329aa8..83837ebfe 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -70,7 +70,7 @@ typedef struct { void (* const init) (void); tusb_error_t (* const open)(uint8_t, tusb_descriptor_interface_t const *, uint16_t*); - tusb_error_t (* const control_request) (uint8_t, tusb_control_request_t const *); + tusb_error_t (* const control_request_subtask) (uint8_t, tusb_control_request_t const *); tusb_error_t (* const xfer_cb) (endpoint_handle_t, tusb_event_t, uint32_t); void (* const close) (uint8_t); } usbd_class_driver_t; @@ -90,8 +90,11 @@ bool tusbd_is_configured(uint8_t coreid) ATTR_WARN_UNUSED_RESULT; //--------------------------------------------------------------------+ #ifdef _TINY_USB_SOURCE_FILE_ +extern osal_semaphore_handle_t usbd_control_xfer_sem_hdl; + tusb_error_t usbd_init(void); OSAL_TASK_FUNCTION (usbd_task) (void* p_task_para); + #endif #ifdef __cplusplus |
