rtc11 2.0.0.0
main.c File Reference

RTC11 Click example. More...

#include "board.h"
#include "log.h"
#include "rtc11.h"

Functions

void disp_day_of_the_week (uint8_t w_day)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint8_t sec_flag = 0xFF
 

Detailed Description

RTC11 Click example.

Description

This is an example that demonstrates the use of the RTC 11 click boardâ„¢.

The demo application is composed of two sections :

Application Init

Initalizes SPI, performs software reset, sets system time and date, and starts clocking system.

Application Task

Demonstrates use of RTC 11 click board by reading and displaying time and date via USART terminal.

Additional Functions :

void disp_day_of_the_week ( uint8_t w_day ) - Writes the day of the week on USART terminal.

Author
Stefan Ilic

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ disp_day_of_the_week()

void disp_day_of_the_week ( uint8_t w_day)

◆ main()

int main ( void )

Variable Documentation

◆ sec_flag

uint8_t sec_flag = 0xFF