Skip to content
This repository was archived by the owner on Nov 21, 2017. It is now read-only.
This repository was archived by the owner on Nov 21, 2017. It is now read-only.

Newlib - Clean up gettimeofday() #51

@IanSeyler

Description

@IanSeyler

Have the RTC interrupt increment a 64-bit value every second.
On the first call to gettimeofday() check this value.
If the value is less than 946684800 (2000/1/1 00:00:00) then we have an invalid date.
gettimeofday() can then call the RTC hardware and calculate the real epoch time.
gettimeofday() will then update the OS timer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions