rtc7 2.0.0.0
main.c File Reference

RTC7 Click example. More...

#include "board.h"
#include "log.h"
#include "rtc7.h"

Functions

void rtc7_display_results (rtc7_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

rtc7_time_t time_set
 
rtc7_time_t time_date
 

Detailed Description

RTC7 Click example.

Description

This app is used to accurately measure time with low power consumption.

The demo application is composed of two sections :

Application Init

Initializes device.

Application Task

Waits for a second count-up interrupt and then reads and logs the current time and date on the USB UART.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

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 )

◆ main()

int main ( void )

◆ rtc7_display_results()

void rtc7_display_results ( rtc7_t * ctx)

Variable Documentation

◆ time_date

rtc7_time_t time_date

◆ time_set

rtc7_time_t time_set