Rename function st_rtc_localtime with _rtc_localtime

pull/4499/head
Sam Grove 2017-06-07 23:24:48 -05:00
parent f880e44145
commit 547320e99c
9 changed files with 9 additions and 9 deletions

View File

@ -82,7 +82,7 @@ void rtc_write(time_t t)
rtc_init();
}
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}
uint32_t ul_hour, ul_minute, ul_second;

View File

@ -100,7 +100,7 @@ void rtc_write(time_t t)
// Convert timestamp to struct tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}

View File

@ -100,7 +100,7 @@ void rtc_write(time_t t)
// Convert timestamp to struct tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}

View File

@ -97,7 +97,7 @@ time_t rtc_read(void) {
void rtc_write(time_t t) {
// Convert the time in to a tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}

View File

@ -96,7 +96,7 @@ time_t rtc_read(void) {
void rtc_write(time_t t) {
// Convert the time in to a tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}

View File

@ -110,7 +110,7 @@ time_t rtc_read(void) {
void rtc_write(time_t t) {
// Convert the time in to a tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}

View File

@ -305,7 +305,7 @@ static int rtc_dec16_to_hex(uint16_t dec_val, uint16_t offset, int *hex_val) {
void rtc_write(time_t t) {
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}
volatile uint16_t dummy_read;

View File

@ -339,7 +339,7 @@ static int rtc_dec16_to_hex(uint16_t dec_val, uint16_t offset, int *hex_val) {
void rtc_write(time_t t) {
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}
volatile uint16_t dummy_read;

View File

@ -254,7 +254,7 @@ void rtc_write(time_t t)
// Convert the time into a tm
struct tm timeinfo;
if (st_rtc_localtime(t, &timeinfo) == false) {
if (_rtc_localtime(t, &timeinfo) == false) {
return;
}