| 699 | } |
| 700 | |
| 701 | void rt_led_thread_entry(void* parameter) |
| 702 | { |
| 703 | rt_uint8_t n = 0; |
| 704 | |
| 705 | rt_hw_led_on(0); |
| 706 | rt_hw_led_on(1); |
| 707 | rt_hw_led_on(2); |
| 708 | rt_hw_led_on(3); |
| 709 | |
| 710 | while(1) |
| 711 | { |
| 712 | /* Toggle a led per second */ |
| 713 | rt_hw_led_toggle(n++); |
| 714 | if (n == LEDS_MAX_NUMBER) |
| 715 | { |
| 716 | n =0; |
| 717 | } |
| 718 | rt_thread_delay(100); |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | int rt_application_init() |
| 723 | { |
nothing calls this directly
no test coverage detected