Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
566 stars 571 forks source link

apps/examples/rtc: initialize prev time to epoch for RTC to work #6242

Closed abhishek-samsung closed 3 months ago

abhishek-samsung commented 3 months ago

RTC doesnt work because of wrong initialization. Hence, initialize RTC with epoch time

[RTW]: ** Band = 2.4G and 5G **
System Information:
        Version:
                Platform: 3.1   Binary: 200204
        Commit Hash: 85bd621
        Build User: root@=
        Build Time: 2024-06-19 10:57:01 IST
        System Time: 19 Jun 2024, 00:00:00 [s] UTC Hardware RTC Support
TASH>>Hello, World!!

TASH>>rtc
TASH>>=== RTC Accuracy Test ===
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s
[Total 0m passed] Time Difference : 1s