OpenBIC
OpenSource Bridge-IC
plat_power_status.c File Reference
#include <string.h>
#include <logging/log.h>
#include "plat_gpio.h"
#include "plat_power_status.h"
#include "libutil.h"
Include dependency graph for plat_power_status.c:

Macros

#define BIC_HB_HIGH_INTERVAL_MSEC   500
 
#define BIC_HB_LOW_INTERVAL_MSEC   500
 
#define BIC_HB_THREAD_STACK_SIZE   256
 

Functions

 LOG_MODULE_REGISTER (plat_power_status)
 
 K_KERNEL_STACK_MEMBER (bic_hb_thread_stack, BIC_HB_THREAD_STACK_SIZE)
 
 K_KERNEL_STACK_MEMBER (mpro_hb_thread_stack, BIC_HB_THREAD_STACK_SIZE)
 
void set_mpro_status ()
 
bool get_mpro_status ()
 
bool mpro_access (uint8_t sensor_num)
 
void bic_hb_handler (void *arug0, void *arug1, void *arug2)
 
void bic_heart_beat_init ()
 
void mpro_padding ()
 
void mpro_hb_handler (void *arug0, void *arug1, void *arug2)
 
void mpro_heart_beat_check_init ()
 

Variables

struct k_thread bic_hb_thread
 
struct k_thread mpro_hb_thread
 
uint8_t mpro_hb_cnt = 0
 

Macro Definition Documentation

◆ BIC_HB_HIGH_INTERVAL_MSEC

#define BIC_HB_HIGH_INTERVAL_MSEC   500

◆ BIC_HB_LOW_INTERVAL_MSEC

#define BIC_HB_LOW_INTERVAL_MSEC   500

◆ BIC_HB_THREAD_STACK_SIZE

#define BIC_HB_THREAD_STACK_SIZE   256

Function Documentation

◆ bic_hb_handler()

void bic_hb_handler ( void *  arug0,
void *  arug1,
void *  arug2 
)
Here is the call graph for this function:

◆ bic_heart_beat_init()

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

◆ get_mpro_status()

bool get_mpro_status ( )

◆ K_KERNEL_STACK_MEMBER() [1/2]

K_KERNEL_STACK_MEMBER ( bic_hb_thread_stack  ,
BIC_HB_THREAD_STACK_SIZE   
)

◆ K_KERNEL_STACK_MEMBER() [2/2]

K_KERNEL_STACK_MEMBER ( mpro_hb_thread_stack  ,
BIC_HB_THREAD_STACK_SIZE   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_power_status  )

◆ mpro_access()

bool mpro_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ mpro_hb_handler()

void mpro_hb_handler ( void *  arug0,
void *  arug1,
void *  arug2 
)
Here is the call graph for this function:

◆ mpro_heart_beat_check_init()

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

◆ mpro_padding()

void mpro_padding ( )

◆ set_mpro_status()

void set_mpro_status ( )

Variable Documentation

◆ bic_hb_thread

struct k_thread bic_hb_thread

◆ mpro_hb_cnt

uint8_t mpro_hb_cnt = 0

◆ mpro_hb_thread

struct k_thread mpro_hb_thread