The program sends the current location over the cellular network.

Dependencies:   aconno_I2C ublox-at-cellular-interface gnss ublox-cellular-base Lis2dh12 ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx low-power-sleep

Fork of example-gnss by u-blox

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers STM32Bsp.cpp Source File

STM32Bsp.cpp

00001 /*
00002 * Aconno Board Support Packet
00003 * Made by Jurica Resetar @ aconno
00004 * More info @ aconno.de
00005 */
00006 
00007 #include "mbed.h"
00008 #include "STM32Bsp.h"
00009 
00010 /*
00011 DigitalOut redLed(RED_LED_PIN);
00012 DigitalOut blueLed(BLUE_LED_PIN);
00013 DigitalOut greenLed(GREEN_LED_PIN);
00014 */
00015 void bsp_init()
00016 {
00017     bsp_ctrl_led(redLed, LED_OFF);
00018     bsp_ctrl_led(greenLed, LED_OFF);
00019     bsp_ctrl_led(blueLed, LED_OFF);
00020 }
00021 
00022 void bsp_ctrl_led(DigitalOut led, led_state state)
00023 {
00024     led = state;
00025 }
00026 
00027 void bsp_toggle_led(DigitalOut led)
00028 {
00029     led = !led;
00030 }
00031 
00032 int bsp_read_button()
00033 {
00034     //return userButton.read();
00035 }