buck16 2.0.0.0
main.c File Reference

Buck16 Click example. More...

#include "board.h"
#include "log.h"
#include "buck16.h"

Functions

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

Detailed Description

Buck16 Click example.

Description

This example showcases ability of the device to control voltage output of device. Output voltage can range from 800 to 5500 depending of VIN. By default it will go from 800 to 3300 VIN==VCC.

The demo application is composed of two sections :

Application Init

Initialization of communication modules (SPI, UART) and additional pin for enabling output and sets it to high.

Application Task

Sets voltage output first to 900mV then to 2500 mV. Then disables and enables output by toggling pin. In the end sets output value to 1500mV.

Author
Luka Filipovic

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 )