Forráskód Böngészése

newlib: Remove RTC_DATA_ATTR for adjtime

Using RTC_DATA_ATTR in newlib leads to increased power consumption in sleep mode. (RTC SLOW MEM)
Konstantin Kondrashov 7 éve
szülő
commit
b1189f4f6a
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      components/newlib/time.c

+ 2 - 2
components/newlib/time.c

@@ -80,9 +80,9 @@ static uint64_t s_boot_time;
 static _lock_t s_boot_time_lock;
 static _lock_t s_boot_time_lock;
 static _lock_t s_adjust_time_lock;
 static _lock_t s_adjust_time_lock;
 // stores the start time of the slew
 // stores the start time of the slew
-RTC_DATA_ATTR static uint64_t adjtime_start = 0;
+static uint64_t adjtime_start = 0;
 // is how many microseconds total to slew
 // is how many microseconds total to slew
-RTC_DATA_ATTR static int64_t adjtime_total_correction = 0;
+static int64_t adjtime_total_correction = 0;
 #define ADJTIME_CORRECTION_FACTOR 6
 #define ADJTIME_CORRECTION_FACTOR 6
 static uint64_t get_time_since_boot();
 static uint64_t get_time_since_boot();
 #endif
 #endif