diff options
| author | hathach <[email protected]> | 2014-04-03 16:41:42 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-03 16:41:42 +0700 |
| commit | bfb80c4edeeba2fb3c8508ab6978b7d73b1a4d4a (patch) | |
| tree | fd6291670cb4f2f0b42bed5720fbd6264cf24a3c /demos/device/src | |
| parent | 574c92d62e1e0f99a596a1b3db6e03274c7cb735 (diff) | |
added rtos to greeting for easy testing
correct all keil flash setting
Diffstat (limited to 'demos/device/src')
| -rw-r--r-- | demos/device/src/main.c | 10 | ||||
| -rw-r--r-- | demos/device/src/tusb_config.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/demos/device/src/main.c b/demos/device/src/main.c index 6e8e16746..de6250529 100644 --- a/demos/device/src/main.c +++ b/demos/device/src/main.c @@ -115,6 +115,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"
+ };
+
printf("\n\
--------------------------------------------------------------------\n\
- Device Demo (a tinyusb example)\n\
@@ -123,7 +130,8 @@ void print_greeting(void) --------------------------------------------------------------------\n\n"
);
- puts("This demo supports the following classes for DEVICE");
+ puts("This DEVICE demo is configured to support:");
+ printf(" - RTOS = %s\n", rtos_name[TUSB_CFG_OS]);
if (TUSB_CFG_DEVICE_HID_MOUSE ) puts(" - HID Mouse");
if (TUSB_CFG_DEVICE_HID_KEYBOARD ) puts(" - HID Keyboard");
if (TUSB_CFG_DEVICE_MSC ) puts(" - Mass Storage");
diff --git a/demos/device/src/tusb_config.h b/demos/device/src/tusb_config.h index c21caaade..bb8e6769c 100644 --- a/demos/device/src/tusb_config.h +++ b/demos/device/src/tusb_config.h @@ -58,7 +58,7 @@ #define TUSB_CFG_DEVICE_FULLSPEED 1 // TODO refractor, remove
//------------- CLASS -------------//
-#define TUSB_CFG_DEVICE_HID_KEYBOARD 1
+#define TUSB_CFG_DEVICE_HID_KEYBOARD 0
#define TUSB_CFG_DEVICE_HID_MOUSE 1
#define TUSB_CFG_DEVICE_HID_GENERIC 0 // not supported yet
#define TUSB_CFG_DEVICE_MSC 1
|
