spacelab-ufsc / ttc2

Telemetry, Tracking and Command Module 2.0
19 stars 1 forks source link

Firmware: Create a CONFIG_DEVs in startup.c for enabling devices initialization #90

Closed joaoclaudioeb closed 2 years ago

joaoclaudioeb commented 2 years ago

Create something like this:

#if defined(CONFIG_DEV_LEDS_ENABLED) && (CONFIG_DEV_LEDS_ENABLED == 1)
    /* LEDs device initialization */
    if (leds_init() != 0)
    {
        error_counter++;
    }
#endif /* CONFIG_DEV_LEDS_ENABLED */

Today is like this:

    /* LEDs device initialization */
    if (leds_init() != 0)
    {
        error_counter++;
    }