OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plat_led.c File Reference
#include <logging/log.h>
#include "libutil.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "plat_power_seq.h"
#include "plat_led.h"
Include dependency graph for plat_led.c:

Macros

#define E1S_LED_BLINK_INIT(device)
 

Functions

 LOG_MODULE_REGISTER (plat_led)
 
 E1S_LED_BLINK_INIT (0)
 
 E1S_LED_BLINK_INIT (1)
 
 E1S_LED_BLINK_INIT (2)
 
 E1S_LED_BLINK_INIT (3)
 
 E1S_LED_BLINK_INIT (4)
 
uint8_t get_e1s_led_gpio (uint8_t device_id)
 
struct k_timer * get_e1s_led_timer (uint8_t device_id)
 
void stop_blink_timer (uint8_t device_id)
 
void set_e1s_amber_led (uint8_t device_id, uint8_t ctrl_option)
 
uint8_t get_e1s_amber_led_status (uint8_t device_id)
 
int control_e1s_amber_led (uint8_t device_id, uint8_t ctrl_option)
 

Macro Definition Documentation

◆ E1S_LED_BLINK_INIT

#define E1S_LED_BLINK_INIT (   device)
Value:
void blink_handler_##device(struct k_timer *timer) \
{ \
CHECK_NULL_ARG(timer); \
set_e1s_amber_led(E1S_##device, CTRL_LED_START_BLINK); \
} \
void stop_blink_handler_##device(struct k_timer *timer) \
{ \
CHECK_NULL_ARG(timer); \
set_e1s_amber_led(E1S_##device, e1s_amber_led_pre_status[E1S_##device]); \
} \
K_TIMER_DEFINE(e1s_led_blink_timer_##device, blink_handler_##device, \
stop_blink_handler_##device);
@ CTRL_LED_START_BLINK
Definition: plat_led.h:25

Function Documentation

◆ control_e1s_amber_led()

int control_e1s_amber_led ( uint8_t  device_id,
uint8_t  ctrl_option 
)

◆ E1S_LED_BLINK_INIT() [1/5]

E1S_LED_BLINK_INIT ( )

◆ E1S_LED_BLINK_INIT() [2/5]

E1S_LED_BLINK_INIT ( )

◆ E1S_LED_BLINK_INIT() [3/5]

E1S_LED_BLINK_INIT ( )

◆ E1S_LED_BLINK_INIT() [4/5]

E1S_LED_BLINK_INIT ( )

◆ E1S_LED_BLINK_INIT() [5/5]

E1S_LED_BLINK_INIT ( )

◆ get_e1s_amber_led_status()

uint8_t get_e1s_amber_led_status ( uint8_t  device_id)

◆ get_e1s_led_gpio()

uint8_t get_e1s_led_gpio ( uint8_t  device_id)
Here is the call graph for this function:

◆ get_e1s_led_timer()

struct k_timer * get_e1s_led_timer ( uint8_t  device_id)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_led  )

◆ set_e1s_amber_led()

void set_e1s_amber_led ( uint8_t  device_id,
uint8_t  ctrl_option 
)
Here is the call graph for this function:

◆ stop_blink_timer()

void stop_blink_timer ( uint8_t  device_id)
Here is the call graph for this function: