OpenBIC
OpenSource Bridge-IC
plat_init.c File Reference
#include <stdio.h>
#include "hal_gpio.h"
#include "plat_pwm.h"
#include <logging/log.h>
#include "plat_class.h"
#include "plat_modbus.h"
#include "plat_util.h"
#include "plat_threshold.h"
#include "plat_log.h"
#include "plat_gpio.h"
#include "hal_i2c.h"
#include "nct7363.h"
#include "plat_i2c.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "plat_fsc.h"
#include "plat_isr.h"
Include dependency graph for plat_init.c:

Macros

#define DEF_PROJ_GPIO_PRIORITY   78
 

Functions

 LOG_MODULE_REGISTER (plat_init)
 
 K_WORK_DELAYABLE_DEFINE (up_15sec_handler, pump_board_init)
 
void pal_pre_init ()
 
void pal_post_init ()
 
void pal_device_init ()
 
void pal_set_sys_status ()
 
 DEVICE_DEFINE (PRE_DEF_PROJ_GPIO, "PRE_DEF_PROJ_GPIO_NAME", &gpio_init, NULL, NULL, NULL, POST_KERNEL, DEF_PROJ_GPIO_PRIORITY, NULL)
 

Variables

SCU_CFG scu_cfg []
 
uint8_t pump_board_init_tbl []
 

Macro Definition Documentation

◆ DEF_PROJ_GPIO_PRIORITY

#define DEF_PROJ_GPIO_PRIORITY   78

Function Documentation

◆ DEVICE_DEFINE()

DEVICE_DEFINE ( PRE_DEF_PROJ_GPIO  ,
"PRE_DEF_PROJ_GPIO_NAME"  ,
gpio_init,
NULL  ,
NULL  ,
NULL  ,
POST_KERNEL  ,
DEF_PROJ_GPIO_PRIORITY  ,
NULL   
)

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( up_15sec_handler  ,
pump_board_init   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_init  )

◆ pal_device_init()

void pal_device_init ( )

◆ pal_post_init()

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

◆ pal_pre_init()

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

◆ pal_set_sys_status()

void pal_set_sys_status ( )

Variable Documentation

◆ pump_board_init_tbl

uint8_t pump_board_init_tbl[]
Initial value:
= {
}
#define SENSOR_NUM_PB_1_PUMP_TACH_RPM
Definition: plat_sensor_table.h:162
#define SENSOR_NUM_PB_2_FAN_2_TACH_RPM
Definition: plat_sensor_table.h:167
#define SENSOR_NUM_PB_1_FAN_2_TACH_RPM
Definition: plat_sensor_table.h:164
#define SENSOR_NUM_PB_1_HSC_P48V_IOUT_CURR_A
Definition: plat_sensor_table.h:130
#define SENSOR_NUM_PB_1_HDC1080DMBR_TEMP_C
Definition: plat_sensor_table.h:196
#define SENSOR_NUM_PB_3_HSC_P48V_PIN_PWR_W
Definition: plat_sensor_table.h:139
#define SENSOR_NUM_PB_1_HSC_P48V_PIN_PWR_W
Definition: plat_sensor_table.h:131
#define SENSOR_NUM_PB_3_FAN_2_TACH_RPM
Definition: plat_sensor_table.h:170
#define SENSOR_NUM_PB_1_HUM_PCT_RH
Definition: plat_sensor_table.h:226
#define SENSOR_NUM_PB_2_HSC_P48V_TEMP_C
Definition: plat_sensor_table.h:132
#define SENSOR_NUM_PB_3_HSC_P48V_VIN_VOLT_V
Definition: plat_sensor_table.h:137
#define SENSOR_NUM_PB_3_PUMP_TACH_RPM
Definition: plat_sensor_table.h:168
#define SENSOR_NUM_PB_3_HDC1080DMBR_TEMP_C
Definition: plat_sensor_table.h:198
#define SENSOR_NUM_PB_3_HSC_P48V_IOUT_CURR_A
Definition: plat_sensor_table.h:138
#define SENSOR_NUM_PB_2_PUMP_TACH_RPM
Definition: plat_sensor_table.h:165
#define SENSOR_NUM_PB_2_HSC_P48V_IOUT_CURR_A
Definition: plat_sensor_table.h:134
#define SENSOR_NUM_PB_2_HSC_P48V_PIN_PWR_W
Definition: plat_sensor_table.h:135
#define SENSOR_NUM_PB_2_HSC_P48V_VIN_VOLT_V
Definition: plat_sensor_table.h:133
#define SENSOR_NUM_PB_3_HSC_P48V_TEMP_C
Definition: plat_sensor_table.h:136
#define SENSOR_NUM_PB_3_FAN_1_TACH_RPM
Definition: plat_sensor_table.h:169
#define SENSOR_NUM_PB_2_HUM_PCT_RH
Definition: plat_sensor_table.h:227
#define SENSOR_NUM_PB_2_FAN_1_TACH_RPM
Definition: plat_sensor_table.h:166
#define SENSOR_NUM_PB_3_HUM_PCT_RH
Definition: plat_sensor_table.h:228
#define SENSOR_NUM_PB_1_HSC_P48V_TEMP_C
Definition: plat_sensor_table.h:128
#define SENSOR_NUM_PB_1_FAN_1_TACH_RPM
Definition: plat_sensor_table.h:163
#define SENSOR_NUM_PB_1_HSC_P48V_VIN_VOLT_V
Definition: plat_sensor_table.h:129
#define SENSOR_NUM_PB_2_HDC1080DMBR_TEMP_C
Definition: plat_sensor_table.h:197

◆ scu_cfg

SCU_CFG scu_cfg[]
Initial value:
= {
{ 0x7e789108, 0x00000500 },
{ 0x7e6e24b0, 0x00008000 },
{ 0x7e6e24bc, 0x00000001 },
{ 0x7e6e2610, 0x0FFFBFFF },
{ 0x7e6e2614, 0x018F0100 },
{ 0x7e6e2618, 0x0F00FF00 },
{ 0x7e6e261C, 0xFE300005 },
{ 0x7e6e2630, 0x00000002 },
}