pressure 2.0.0.0
main.c File Reference

Pressure Click example. More...

#include "board.h"
#include "log.h"
#include "pressure.h"

Functions

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

Detailed Description

Pressure Click example.

Description

This is a example which demonstrates the use of Pressure Click board. Measured pressure and temperature data from the LPS331AP sensor on Pressure click.

The demo application is composed of two sections :

Application Init

Initializes I2C/SPI serial interface and puts a device to the initial state. Also initializes UART console module for results logging.

Application Task

Reads the pressure and temperature results in standard units when measurement was done and sends results to the console (usb uart terminal). Repeats operation every 500ms.

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 )