able to build host hid

This commit is contained in:
hathach
2018-12-07 14:57:58 +07:00
parent d524da0c94
commit 366ab79776
18 changed files with 98 additions and 59 deletions

View File

@@ -42,7 +42,7 @@
#include "keyboard_host_app.h"
#include "app_os_prio.h"
#if CFG_TUSB_HOST_HID_KEYBOARD
#if CFG_TUH_HID_KEYBOARD
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF

View File

@@ -59,7 +59,7 @@
extern "C" {
#endif
#if CFG_TUSB_HOST_HID_KEYBOARD
#if CFG_TUH_HID_KEYBOARD
void keyboard_host_app_init(void);
void keyboard_host_app_task(void* param);

View File

@@ -136,8 +136,8 @@ void print_greeting(void)
puts("This HOST demo is configured to support:");
printf(" - RTOS = %s\n", rtos_name[CFG_TUSB_OS]);
if (CFG_TUH_HUB ) puts(" - Hub (1 level only)");
if (CFG_TUSB_HOST_HID_MOUSE ) puts(" - HID Mouse");
if (CFG_TUSB_HOST_HID_KEYBOARD ) puts(" - HID Keyboard");
if (CFG_TUH_HID_MOUSE ) puts(" - HID Mouse");
if (CFG_TUH_HID_KEYBOARD ) puts(" - HID Keyboard");
if (CFG_TUH_MSC ) puts(" - Mass Storage");
if (CFG_TUH_CDC ) puts(" - Communication Device Class");
}

View File

@@ -42,7 +42,7 @@
#include "mouse_host_app.h"
#include "app_os_prio.h"
#if CFG_TUSB_HOST_HID_MOUSE
#if CFG_TUH_HID_MOUSE
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF

View File

@@ -62,7 +62,7 @@
extern "C" {
#endif
#if CFG_TUSB_HOST_HID_MOUSE
#if CFG_TUH_HID_MOUSE
void mouse_host_app_init(void);
void mouse_host_app_task(void* param);

View File

@@ -55,8 +55,8 @@
//------------- CLASS -------------//
#define CFG_TUH_HUB 1
#define CFG_TUSB_HOST_HID_KEYBOARD 1
#define CFG_TUSB_HOST_HID_MOUSE 1
#define CFG_TUH_HID_KEYBOARD 1
#define CFG_TUH_HID_MOUSE 1
#define CFG_TUSB_HOST_HID_GENERIC 0 // (not yet supported)
#define CFG_TUH_MSC 1
#define CFG_TUH_CDC 1