boost 2.0.0.0
main.c File Reference

Boost Click example. More...

#include "board.h"
#include "log.h"
#include "boost.h"

Functions

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

Detailed Description

Boost Click example.

Description

Boost click provides an adjustable output voltage through the onboard DAC that drives the FB pin of the MIC2606 to set desired output voltage.

The demo application is composed of two sections :

Application Init

Initializes SPI driver for serial communication and puts the device to power ON state. Also, initializes logger module for message and results sending.

Application Task

This is a example which demonstrates the use of Boost Click board. Boost Click communicates with register via SPI by reading from MCP3551 chip and writing DAC value to the MCP4921 chip. This example periodicaly increases and decreases voltage in range between 15 and 30 Volts. All data logs write on usb uart for aproximetly every 1 sec.

Author
Nemanja Medakovic

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 )