rtc5 2.0.0.0
|
Rtc5 Click example. More...
Functions | |
void | display_log_day_of_the_week (uint8_t w_day) |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
rtc5_timedate_t | time_date_data |
Rtc5 Click example.
This is a example which demonstrates the use of RTC 5 Click board.
The demo application is composed of two sections :
Initializes GPIO, SPI and LOG structures, sets CS pin as output and INT pin as input. Initialization driver enable's - SPI, clear RTCC and SRAM memory, sets starting time and date, enable counting and start write log.
RTC 5 Click communicates with register via SPI by write to register and read from register, display RTC time and date.
note: Additional Functions: void display_log_day_of_the_week( uint8_t w_day ) - Write day of the week log.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void display_log_day_of_the_week | ( | uint8_t | w_day | ) |
int main | ( | void | ) |
rtc5_timedate_t time_date_data |