Searched refs:rtc_time (Results 1 – 3 of 3) sorted by relevance
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/rtc/ |
A D | rtc_test.c | 18 static rtc_time_t rtc_time = {.sec = 45, .min = 30, .hr = 15, .weekday = 5, .date = 1, .month = 3, … variable 35 rtc_time.year, rtc_time.month, rtc_time.date, rtc_time.weekday, in hal_rtc_test() 36 rtc_time.hr, rtc_time.min, rtc_time.sec); in hal_rtc_test() 44 ret = hal_rtc_set_time(&rtc_dev, &rtc_time); in hal_rtc_test() 64 if ((rtc_time_r.sec != rtc_time.sec + RTC_DELAY_MS / 1000) in hal_rtc_test() 65 ||(rtc_time_r.min != rtc_time.min) in hal_rtc_test() 66 ||(rtc_time_r.hr != rtc_time.hr) in hal_rtc_test() 67 ||(rtc_time_r.weekday != rtc_time.weekday) in hal_rtc_test() 68 ||(rtc_time_r.date != rtc_time.date) in hal_rtc_test() 69 ||(rtc_time_r.month != rtc_time.month) in hal_rtc_test() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/i2c/ |
A D | i2c_test.c | 24 static rtc_time_t rtc_time = {.sec = 0x45, .min = 0x8, .hr = 0x1, .weekday = 0x5, .date = 0x1, .mon… variable 47 rtc_time.year, rtc_time.month, rtc_time.date, rtc_time.weekday, in hal_i2c_test() 48 rtc_time.hr, rtc_time.min, rtc_time.sec); in hal_i2c_test() 50 ret = rtc_i2c_set_time(&rtc_time); in hal_i2c_test() 81 if ((rtc_time_r.sec != rtc_time.sec + I2C_RTC_DELAY_MS / 1000) in hal_i2c_test() 82 ||(rtc_time_r.min != rtc_time.min) in hal_i2c_test() 83 ||(rtc_time_r.hr != rtc_time.hr) in hal_i2c_test() 84 ||(rtc_time_r.weekday != rtc_time.weekday) in hal_i2c_test() 85 ||(rtc_time_r.date != rtc_time.date) in hal_i2c_test() 86 ||(rtc_time_r.month != rtc_time.month) in hal_i2c_test() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_rtc.h | 13 struct rtc_time { struct 22 typedef void (*HAL_RTC_IRQ_HANDLER_T)(struct rtc_time *time); argument 24 int hal_rtc_get(struct rtc_time *time); 26 int hal_rtc_set(struct rtc_time *time); 28 int hal_rtc_set_alarm(struct rtc_time *time);
|
Completed in 5 milliseconds