diff options
| author | hathach <[email protected]> | 2013-01-17 14:40:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-17 14:40:46 +0700 |
| commit | c16632da0bf8d042388018c667cfbc176ed56436 (patch) | |
| tree | ceb00f2f4207ba42928430239a61ce607b5bcc02 /demos/device/keyboard/main.c | |
| parent | 480ddb4fecb96c79cc046f3e4d03ec73a04abca0 (diff) | |
add UART support for ea4357 (tested)
Diffstat (limited to 'demos/device/keyboard/main.c')
| -rw-r--r-- | demos/device/keyboard/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/device/keyboard/main.c b/demos/device/keyboard/main.c index b031312e4..19f2da104 100644 --- a/demos/device/keyboard/main.c +++ b/demos/device/keyboard/main.c @@ -26,9 +26,9 @@ int main(void) current_tick += 1000; board_leds(0x01, (current_tick/1000)%2); /* Toggle LED once per second */ - printf("hello world\n"); + printf("tinyusb: " __DATE__ "\t" __TIME__ "\n"); - #ifndef TUSB_CFG_DEVICE_CDC + #if !(defined TUSB_CFG_DEVICE_CDC) && 0 if (usb_isConfigured()) { #ifdef TUSB_CFG_DEVICE_HID_KEYBOARD @@ -43,7 +43,7 @@ int main(void) #endif } - #ifdef TUSB_CFG_DEVICE_CDC + #if defined TUSB_CFG_DEVICE_CDC && 0 if (usb_isConfigured()) { uint8_t cdc_char; |
