summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_hid/src/main.c
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/main.c
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/main.c')
-rw-r--r--examples/device/cdc_msc_hid/src/main.c5
1 files changed, 3 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
}