|
OpenBIC
OpenSource Bridge-IC
|
#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"
Macros | |
| #define | BMC_EID 0x08 |
| #define | RTC_SYNC_INTERVAL_SEC 10 |
| #define | RTC_WORKQ_STACK_SIZE 2048 |
| #define | RTC_WORKQ_PRIORITY CONFIG_MAIN_THREAD_PRIORITY + 2 |
Functions | |
| LOG_MODULE_REGISTER (plat_datetime) | |
| K_THREAD_STACK_DEFINE (rtc_workq_stack, RTC_WORKQ_STACK_SIZE) | |
| K_WORK_DELAYABLE_DEFINE (rtc_sync_work, rtc_sync_work_handler) | |
| int | get_datetime_from_bmc (struct tm *tm_now) |
| void | rtc_init_once (void) |
| time_t | rtc_time (time_t *tloc) |
| void | rtc_get_tm (struct tm *tm_now) |
Variables | |
| struct k_work_q | rtc_workq |
| #define BMC_EID 0x08 |
| #define RTC_SYNC_INTERVAL_SEC 10 |
| #define RTC_WORKQ_PRIORITY CONFIG_MAIN_THREAD_PRIORITY + 2 |
| #define RTC_WORKQ_STACK_SIZE 2048 |
| int get_datetime_from_bmc | ( | struct tm * | tm_now | ) |

| K_THREAD_STACK_DEFINE | ( | rtc_workq_stack | , |
| RTC_WORKQ_STACK_SIZE | |||
| ) |
| K_WORK_DELAYABLE_DEFINE | ( | rtc_sync_work | , |
| rtc_sync_work_handler | |||
| ) |
| LOG_MODULE_REGISTER | ( | plat_datetime | ) |
| void rtc_get_tm | ( | struct tm * | tm_now | ) |

| void rtc_init_once | ( | void | ) |
| time_t rtc_time | ( | time_t * | tloc | ) |
| struct k_work_q rtc_workq |