Skip to content

Commit

Permalink
[RTC] Add notes for vendor driver issues on rp2040
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Feb 13, 2025
1 parent 01015d5 commit fe0f6d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions users/drashna/features/rtc/vendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "timer.h"
#include <stdio.h>

// RP2040 RTC is busted?
// time comes back as 8077251600 (0x1E1711410)
// aka 2225/12/16 09:00:00

void convert_halrtc_to_local_rtc_struct(RTCDateTime *halrtc, rtc_time_t *local) {
local->year = halrtc->year + 1980U;
local->month = halrtc->month;
Expand Down

0 comments on commit fe0f6d6

Please sign in to comment.