OpenBIC
OpenSource Bridge-IC
plat_datetime.c File Reference
#include <zephyr.h>
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include <sys/timeutil.h>
#include "plat_datetime.h"
#include "pldm_firmware_update.h"
#include "mctp.h"
#include "pldm.h"
Include dependency graph for plat_datetime.c:

Functions

 LOG_MODULE_REGISTER (plat_datetime)
 
 K_WORK_DEFINE (rtc_sync_work, rtc_sync_work_handler)
 
int get_datetime_from_bmc (struct tm *tm_now)
 
 K_TIMER_DEFINE (rtc_sync_timer, rtc_sync_timer_handler, NULL)
 
void rtc_init_once (void)
 
time_t rtc_time (time_t *tloc)
 
void rtc_get_tm (struct tm *tm_now)
 

Function Documentation

◆ get_datetime_from_bmc()

int get_datetime_from_bmc ( struct tm *  tm_now)
Here is the call graph for this function:

◆ K_TIMER_DEFINE()

K_TIMER_DEFINE ( rtc_sync_timer  ,
rtc_sync_timer_handler  ,
NULL   
)

◆ K_WORK_DEFINE()

K_WORK_DEFINE ( rtc_sync_work  ,
rtc_sync_work_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_datetime  )

◆ rtc_get_tm()

void rtc_get_tm ( struct tm *  tm_now)
Here is the call graph for this function:

◆ rtc_init_once()

void rtc_init_once ( void  )

◆ rtc_time()

time_t rtc_time ( time_t *  tloc)