summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-04-03 16:41:42 +0700
committerhathach <[email protected]>2014-04-03 16:41:42 +0700
commitbfb80c4edeeba2fb3c8508ab6978b7d73b1a4d4a (patch)
treefd6291670cb4f2f0b42bed5720fbd6264cf24a3c /demos/host/src
parent574c92d62e1e0f99a596a1b3db6e03274c7cb735 (diff)
added rtos to greeting for easy testing
correct all keil flash setting
Diffstat (limited to 'demos/host/src')
-rw-r--r--demos/host/src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/demos/host/src/main.c b/demos/host/src/main.c
index 51ca0561b..f7d3b1a7c 100644
--- a/demos/host/src/main.c
+++ b/demos/host/src/main.c
@@ -119,6 +119,13 @@ int main(void)
//--------------------------------------------------------------------+
void print_greeting(void)
{
+ char const * const rtos_name[] =
+ {
+ [TUSB_OS_NONE] = "None",
+ [TUSB_OS_FREERTOS] = "FreeRTOS",
+ [TUSB_OS_CMSIS_RTX] = "CMSIS-RTX"
+ };
+
puts("\n\
--------------------------------------------------------------------\n\
- Host Demo (a tinyusb example)\n\
@@ -127,7 +134,8 @@ void print_greeting(void)
--------------------------------------------------------------------\n"
);
- puts("This demo supports the following classes for HOST");
+ puts("This HOST demo is configured to support:");
+ printf(" - RTOS = %s\n", rtos_name[TUSB_CFG_OS]);
if (TUSB_CFG_HOST_HUB ) puts(" - Hub (1 level only)");
if (TUSB_CFG_HOST_HID_MOUSE ) puts(" - HID Mouse");
if (TUSB_CFG_HOST_HID_KEYBOARD ) puts(" - HID Keyboard");