MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_led_thread_entry

Function rt_led_thread_entry

bsp/efm32/application.c:701–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void 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
722int rt_application_init()
723{

Callers

nothing calls this directly

Calls 3

rt_thread_delayFunction · 0.85
rt_hw_led_onFunction · 0.70
rt_hw_led_toggleFunction · 0.70

Tested by

no test coverage detected