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

STM32Bsp/STM32Bsp.h

Committer:
jurica238814
Date:
2018-12-19
Revision:
9:f943c09d9173
Parent:
8:2bf886335fd0

File content as of revision 9:f943c09d9173:

/*
* Aconno Board Support Packet
* Made by Jurica Resetar @ aconno
* More info @ aconno.de
*/

#ifndef __STM_BSP_H__
#define __STM_BSP_H__

#include "mbed.h"

#define BUTTON_TRUE		(1)
#define BUTTON_FALSE	(!BUTTON_TRUE)

#define USER_BUTTON_PIN     (PC_13)
#define RED_LED_PIN			(PE_4)
#define GREEN_LED_PIN		(PE_3)
#define BLUE_LED_PIN		(PE_1)

extern DigitalOut redLed;
extern DigitalOut blueLed;
extern DigitalOut greenLed;


enum led_state{
    LED_ON = 0,
    LED_OFF = 1
};

void bsp_init();
int bsp_read_button();
void bsp_ctrl_led(DigitalOut led, led_state state);
void bsp_toggle_led(DigitalOut led);

#endif // __STM_BSP_H__