OpenBIC
OpenSource Bridge-IC
plat_led.c File Reference
#include <stdio.h>
#include "plat_led.h"
#include "plat_gpio.h"
#include "plat_util.h"
#include "plat_m2.h"
#include <logging/log.h>
Include dependency graph for plat_led.c:

Macros

#define SSD_LED_BLINK_INIT(DEV)
 

Functions

 LOG_MODULE_REGISTER (plat_led)
 
 SSD_LED_BLINK_INIT (A)
 
 SSD_LED_BLINK_INIT (B)
 
 SSD_LED_BLINK_INIT (C)
 
 SSD_LED_BLINK_INIT (D)
 
uint8_t GetSSDLEDPin (uint8_t idx)
 
struct k_timer * idx_to_ssdled_timer (uint8_t idx)
 
void SSDLEDSet (uint8_t idx, uint8_t behaviour)
 
void stop_blink_timer (uint8_t idx)
 
uint8_t SSDLEDCtrl (uint8_t idx, uint8_t ctrl)
 
uint8_t GetAmberLEDStat (uint8_t idx)
 
void SSDLEDInit (void)
 

Macro Definition Documentation

◆ SSD_LED_BLINK_INIT

#define SSD_LED_BLINK_INIT (   DEV)
Value:
void SSD_LED_blink_Handler_##DEV(struct k_timer *timer) \
{ \
SSDLEDSet(M2_IDX_E_##DEV, SSD_START_BLINK); \
} \
void SSD_LED_stop_blink_Handler_##DEV(struct k_timer *timer) \
{ \
SSDLEDSet(M2_IDX_E_##DEV, pre_state[M2_IDX_E_##DEV]); \
} \
K_TIMER_DEFINE(ssdled_blink_##DEV, SSD_LED_blink_Handler_##DEV, \
SSD_LED_stop_blink_Handler_##DEV);
uint8_t pre_state
Definition: pldm_firmware_update.h:2
#define SSD_START_BLINK
Definition: plat_led.h:21

Function Documentation

◆ GetAmberLEDStat()

uint8_t GetAmberLEDStat ( uint8_t  idx)

◆ GetSSDLEDPin()

uint8_t GetSSDLEDPin ( uint8_t  idx)

◆ idx_to_ssdled_timer()

struct k_timer * idx_to_ssdled_timer ( uint8_t  idx)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_led  )

◆ SSD_LED_BLINK_INIT() [1/4]

SSD_LED_BLINK_INIT ( )

◆ SSD_LED_BLINK_INIT() [2/4]

SSD_LED_BLINK_INIT ( )

◆ SSD_LED_BLINK_INIT() [3/4]

SSD_LED_BLINK_INIT ( )

◆ SSD_LED_BLINK_INIT() [4/4]

SSD_LED_BLINK_INIT ( )

◆ SSDLEDCtrl()

uint8_t SSDLEDCtrl ( uint8_t  idx,
uint8_t  ctrl 
)

◆ SSDLEDInit()

void SSDLEDInit ( void  )
Here is the call graph for this function:

◆ SSDLEDSet()

void SSDLEDSet ( uint8_t  idx,
uint8_t  behaviour 
)
Here is the call graph for this function:

◆ stop_blink_timer()

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