summaryrefslogtreecommitdiff
path: root/demos/host/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-26 02:08:22 +0700
committerhathach <[email protected]>2013-04-26 02:08:22 +0700
commit33feba5cbc7a344f1bac67508e5658aa615e59bf (patch)
treea3833f483fa7d49af0b23799b9c1731a3733b9d0 /demos/host/src/main.c
parentc0104b996e9ea0c5c25861ccf24e0255431a8f9c (diff)
add hid_keycode_to_ascii_tbl for hid class
improve keyboard_app, should display all displayable characters improve the de-bouncing keyboard (still got some issues)
Diffstat (limited to 'demos/host/src/main.c')
-rw-r--r--demos/host/src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/host/src/main.c b/demos/host/src/main.c
index aee0474d7..a88573fb3 100644
--- a/demos/host/src/main.c
+++ b/demos/host/src/main.c
@@ -76,6 +76,10 @@ OSAL_TASK_DEF(led_blinking_task_def, "led blinking", led_blinking_task, 128, LED
int main(void)
{
board_init();
+
+ // print_greeting(); TODO uart output before freeRTOS scheduler start will lead to hardfault
+ // find a way to fix this as tusb_init can output to uart when an error occurred
+
tusb_init();
//------------- application task init -------------//
@@ -95,6 +99,7 @@ int main(void)
#elif TUSB_CFG_OS == TUSB_OS_NONE
print_greeting();
+
while (1)
{
tusb_task_runner();
@@ -122,7 +127,7 @@ int main(void)
void print_greeting(void)
{
printf("\r\n\
---------------------------------------------------------------------\
+--------------------------------------------------------------------\r\n\
- Host Demo (a tinyusb example)\r\n\
- if you find any bugs or get any questions, feel free to file an\r\n\
- issue at https://github.com/hathach/tinyusb\r\n\