summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_hid/src
diff options
context:
space:
mode:
authorScott Shawcroft <[email protected]>2018-11-24 10:55:51 -0800
committerScott Shawcroft <[email protected]>2018-11-25 11:46:06 -0800
commitbf70f89240de82b6a1a64909d96f582041db1148 (patch)
tree67cc01324cc69f5a4f68e98a3da986fda828c3b0 /examples/device/cdc_msc_hid/src
parent3bb53273cd3770328f55ba317af3df0cce4333c1 (diff)
Introduce a Makefile for the OS_NONE device example
It currently supports the SAMD21 and SAMD51 only. More will be added later.
Diffstat (limited to 'examples/device/cdc_msc_hid/src')
-rw-r--r--examples/device/cdc_msc_hid/src/main.c5
-rw-r--r--examples/device/cdc_msc_hid/src/tusb_config.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c
index 4c8730242..9d3e088cf 100644
--- a/examples/device/cdc_msc_hid/src/main.c
+++ b/examples/device/cdc_msc_hid/src/main.c
@@ -49,6 +49,9 @@
void print_greeting(void);
void led_blinking_task(void);
+extern void virtual_com_task(void);
+extern void usb_hid_task(void);
+
/*------------- MAIN -------------*/
int main(void)
{
@@ -64,12 +67,10 @@ int main(void)
led_blinking_task();
#if CFG_TUD_CDC
- extern void virtual_com_task(void);
virtual_com_task();
#endif
#if CFG_TUD_HID
- extern void usb_hid_task(void);
usb_hid_task();
#endif
}
diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h
index 9bc97ecff..0aa023352 100644
--- a/examples/device/cdc_msc_hid/src/tusb_config.h
+++ b/examples/device/cdc_msc_hid/src/tusb_config.h
@@ -39,6 +39,7 @@
#ifndef _TUSB_CONFIG_H_
#define _TUSB_CONFIG_H_
+#include "tusb_option.h"
#include "bsp/board.h"
#ifdef __cplusplus
@@ -96,6 +97,7 @@
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
#define CFG_TUD_MSC 1
+#define CFG_TUD_CUSTOM_CLASS 0
#define CFG_TUD_HID 0
#define CFG_TUD_HID_KEYBOARD 0