implement & document all the device class _mounted_cb & _unmounted_cb callbacks

This commit is contained in:
hathach
2014-03-31 11:59:43 +07:00
parent 0bb2cc64b0
commit 6682720b2a
9 changed files with 79 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
/**************************************************************************/
/**************************************************************************/
/*!
@file mouse_device_app.c
@author hathach (tinyusb.org)
@@ -42,6 +42,7 @@
//--------------------------------------------------------------------+
// INCLUDE
//--------------------------------------------------------------------+
#include "app_os_prio.h"
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
@@ -50,7 +51,7 @@
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
OSAL_TASK_DEF(mouse_device_app_task, 128, MOUSED_APP_TASK_PRIO);
OSAL_TASK_DEF(mouse_device_app_task, 128, MOUSE_APP_TASK_PRIO);
TUSB_CFG_ATTR_USBRAM hid_mouse_report_t mouse_report;
@@ -90,6 +91,7 @@ void tusbd_hid_mouse_set_report_cb(uint8_t coreid, hid_request_report_type_t rep
{
// mouse demo does not support set report --> do nothing
}
//--------------------------------------------------------------------+
// APPLICATION CODE
//--------------------------------------------------------------------+