add UART support for ea4357 (tested)

This commit is contained in:
hathach
2013-01-17 14:40:46 +07:00
parent 480ddb4fec
commit c16632da0b
12 changed files with 88 additions and 42 deletions

View File

@@ -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;