Demo entry 6356727

c

   

Submitted by anonymous on Apr 20, 2017 at 09:48
Language: C. Code size: 440 Bytes.

    /* init led thread */
    result = rt_thread_init(&led_thread,
                            "led",
                            led_thread_entry,
                            param,
                            (rt_uint8_t*)&led_stack[0],
                            sizeof(led_stack),
                            5,
                            5);
    if (result == RT_EOK)
    {
        rt_thread_startup(&led_thread);
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).