From: Nathael Pajani Date: Thu, 11 Nov 2021 02:49:10 +0000 (+0100) Subject: Namespace update for time handling part of Scialys support app X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=eaddb9e4ff05a555f0b00c0098daa997dffaa60e;p=soft%2Flpc122x%2Fscialys Namespace update for time handling part of Scialys support app --- diff --git a/v10/time.c b/v10/time.c index eb81120..5259dcd 100644 --- a/v10/time.c +++ b/v10/time.c @@ -48,7 +48,7 @@ const struct rtc_time oldest = { int time_valid = 0; int rtc_conf_ok = 0; -int time_init_check(uint32_t uart) +int scialys_time_init_check(uint32_t uart) { int ret = 0; ret = rtc_pcf85363a_config(&rtc_conf); @@ -81,7 +81,7 @@ int time_init_check(uint32_t uart) return ret; } -int time_update(uint32_t uart, struct rtc_time* now) +int scialys_time_update(uint32_t uart, struct rtc_time* now) { rtc_pcf85363_time_write(&rtc_conf, now); return 0; @@ -90,7 +90,7 @@ int time_update(uint32_t uart, struct rtc_time* now) /***************************************************************************** */ /* RTC init */ -void time_config(uint32_t i2c_bus_num, uint8_t rtc_addr) +void scialys_time_config(uint32_t i2c_bus_num, uint8_t rtc_addr) { rtc_conf.bus_num = i2c_bus_num; rtc_conf.addr = rtc_addr; diff --git a/v10/time.h b/v10/time.h index 8779c5f..a7ed2bc 100644 --- a/v10/time.h +++ b/v10/time.h @@ -27,8 +27,8 @@ extern struct rtc_pcf85363a_config rtc_conf; extern struct rtc_time now; -int time_init_check(uint32_t uart); -void time_config(uint32_t i2c_bus_num, uint8_t rtc_addr); +int scialys_time_init_check(uint32_t uart); +void scialys_time_config(uint32_t i2c_bus_num, uint8_t rtc_addr); #endif /* RTC_TIME_H */