diff options
| author | hathach <[email protected]> | 2014-03-21 16:38:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-21 16:38:18 +0700 |
| commit | b594d25a532e414461e88d002f6fca0bec248709 (patch) | |
| tree | c62f88ea7a6a0b198654e6bbfd0f62ba133bc16f | |
| parent | d2d0d0a6d528bd44c73ceeea6fbf1093dc339786 (diff) | |
clean up led blinking on host demo
| -rw-r--r-- | demos/host/src/main.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/demos/host/src/main.c b/demos/host/src/main.c index 32804010c..8c2761f62 100644 --- a/demos/host/src/main.c +++ b/demos/host/src/main.c @@ -60,9 +60,6 @@ //--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
-OSAL_TASK_FUNCTION( led_blinking_task, p_task_para);
-OSAL_TASK_DEF(led_blinking_task, 128, LED_BLINKING_APP_TASK_PRIO);
-
void print_greeting(void);
//--------------------------------------------------------------------+
@@ -99,7 +96,7 @@ int main(void) tusb_init();
//------------- application task init -------------//
- if( osal_task_create( OSAL_TASK_REF(led_blinking_task) ) != TUSB_ERROR_NONE ) while(1){}
+ led_blinking_init();
keyboard_app_init();
mouse_app_init();
@@ -122,25 +119,6 @@ int main(void) }
//--------------------------------------------------------------------+
-// BLINKING TASK
-//--------------------------------------------------------------------+
-OSAL_TASK_FUNCTION( led_blinking_task, p_task_para)
-{
- (void) p_task_para; // suppress compiler warnings
-
- static uint32_t led_on_mask = 0;
-
- OSAL_TASK_LOOP_BEGIN
-
- osal_task_delay(1000);
-
- board_leds(led_on_mask, 1 - led_on_mask);
- led_on_mask = 1 - led_on_mask; // toggle
-
- OSAL_TASK_LOOP_END
-}
-
-//--------------------------------------------------------------------+
// HELPER FUNCTION
//--------------------------------------------------------------------+
void print_greeting(void)
|
