drivers/can_virtual/led_virtual.c
author oremeq
Fri, 12 May 2006 22:14:03 +0200
changeset 3 d9cf34cd6823
parent 0 4472ee7c6c3e
permissions -rw-r--r--
ADDED LED to TESTMASTERSLAVE. It looks nice!
Some code for the NVRAM support
/***************************************************************************/
#include <data.h>
#include <led.h>

void led_set_redgreen(CO_Data *d, unsigned char state)
{
        if (state & 0x01)
                printf("\e[41m ERROR LED ON \e[m          ");
        else
                printf("\e[31m error led off \e[m         ");

        if (state & 0x02)
                printf("\e[34;42m RUN LED ON \e[m\n");
        else
                printf("\e[32m run led off \e[m\n");
}