#include <main.h>/*MPL115A1 SDN - +3.3V (always power on)MPL115A1 #CS - PIN_C2MPL115A1 DOUT - PIN_C4MPL115A1 DIN - PIN_C5MPL115A1 SCLK - PIN_C3MPL115A1 GND - GNDMPL115A1 VDD - +3.3V*/#define CSN_SPI PIN_C2#include "MPL115A1.c"void main(){printf("Start \r\n");setup_spi(SPI_MASTER | SPI_MODE_0 | SPI_CLK_DIV_64);output_high(CSN_SPI);delay_ms(100);MPL_init(); // get correction coefficients from the sensorwhile(true){printf("%f %f \r\n", MPL_get_pressure(), MPL_get_temperature());delay_ms(500);}}