ups3 2.0.0.0
main.c File Reference

UPS 3 Click Example. More...

#include "board.h"
#include "log.h"
#include "ups3.h"

Macros

#define UPS3_STATUS_OLD   0x00
 
#define UPS3_STATUS_NEW   0x01
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

UPS 3 Click Example.

Description

This application demonstrates the use of UPS 3 click board.

The demo application is composed of two sections :

Application Init

Initialization driver enable's - GPIO, also write log.

Application Task

With this example we show the operation of UPS 3 clicks. This example shows an autonomously transition from charge to backup mode. Results are being sent to the Usart Terminal where you can track their changes.

Author
Nenad Filipovic

Macro Definition Documentation

◆ UPS3_STATUS_NEW

#define UPS3_STATUS_NEW   0x01

◆ UPS3_STATUS_OLD

#define UPS3_STATUS_OLD   0x00

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 )

◆ main()

int main ( void )