CERN IPMC Front Panel LEDs - Allow for LED Control

Hi,

Are there plans to implement the ability to independently control all 4 LEDs on the front panel through the CERN-IPMC? I would like the ability to create a test program for the LED lines to prove they are functional on a hardware level.

Kind Regards,

Mars Lyukova

Hello,

I have the same requirement please ?

Cheers,

Hello,

Your request is not clear to me.

Cheers,

Markus

Hello,

I was not realizing that you are referring to a ticket of 2021. I may have some code but I need a bit of time to find it.

Cheers,

Markus

Hello Sylvain,

the LEDs can be written from the user code (e.g. main loop or timer callback, sensor driver, OEM command), from the power sequence or from the shelf manager (although Iā€™m not sure how useful this is). Below is some example code on how to switch on and off an LED, they are treated like any GPIO signal:

// FRU LED signals
signal_t fru_led_red_sig = CFG_FRU_LED_1_SIGNAL;

// Switch LED on
signal_activate(&fru_led_red_sig);

// Switch LED off
signal_deactivate(&fru_led_red_sig);

The following three ATCA LEDs are defined:

CFG_FRU_LED_1_SIGNAL
CFG_FRU_LED_2_SIGNAL
CFG_FRU_LED_3_SIGNAL

In the power-on/off sequence you can control the LEDs using the following entries:

<step>PSQ_ENABLE_SIGNAL(CFG_FRU_LED_2_SIGNAL)</step>  <!-- Switch on the green FRU LED -->
<step>PSQ_DISABLE_SIGNAL(CFG_FRU_LED_2_SIGNAL)</step> <!-- Switch off the green FRU LED -->

Let us know if you need additional information.

cheers,

Stefan

1 Like