diff options
| author | hathach <[email protected]> | 2018-11-26 11:44:05 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-26 11:44:05 +0700 |
| commit | 4ec7dba453d414d0c0c67c6f5bab5a9ca9eba388 (patch) | |
| tree | 9d13e00d699168d4681617925fac8e102ccb1495 /examples/device/cdc_msc_hid/src | |
| parent | 3bb53273cd3770328f55ba317af3df0cce4333c1 (diff) | |
| parent | 61bea0db1c645324a44b37327d6630ab85d40f39 (diff) | |
Merge pull request #15 from tannewt/makefile
Add Makefile support for the cdc_msc_hid example
Diffstat (limited to 'examples/device/cdc_msc_hid/src')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/main.c | 5 | ||||
| -rw-r--r-- | examples/device/cdc_msc_hid/src/tusb_config.h | 2 |
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 |
