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
STM32Bsp/STM32Bsp.h@8:2bf886335fd0, 2018-11-30 (annotated)
- Committer:
- jurica238814
- Date:
- Fri Nov 30 16:19:41 2018 +0100
- Revision:
- 8:2bf886335fd0
Aconno init commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 8:2bf886335fd0 | 1 | /* |
jurica238814 | 8:2bf886335fd0 | 2 | * Aconno Board Support Packet |
jurica238814 | 8:2bf886335fd0 | 3 | * Made by Jurica Resetar @ aconno |
jurica238814 | 8:2bf886335fd0 | 4 | * More info @ aconno.de |
jurica238814 | 8:2bf886335fd0 | 5 | */ |
jurica238814 | 8:2bf886335fd0 | 6 | |
jurica238814 | 8:2bf886335fd0 | 7 | #ifndef __STM_BSP_H__ |
jurica238814 | 8:2bf886335fd0 | 8 | #define __STM_BSP_H__ |
jurica238814 | 8:2bf886335fd0 | 9 | |
jurica238814 | 8:2bf886335fd0 | 10 | #include "mbed.h" |
jurica238814 | 8:2bf886335fd0 | 11 | |
jurica238814 | 8:2bf886335fd0 | 12 | #define BUTTON_TRUE (1) |
jurica238814 | 8:2bf886335fd0 | 13 | #define BUTTON_FALSE (!BUTTON_TRUE) |
jurica238814 | 8:2bf886335fd0 | 14 | |
jurica238814 | 8:2bf886335fd0 | 15 | #define USER_BUTTON_PIN (PC_13) |
jurica238814 | 8:2bf886335fd0 | 16 | #define RED_LED_PIN (PE_4) |
jurica238814 | 8:2bf886335fd0 | 17 | #define GREEN_LED_PIN (PE_3) |
jurica238814 | 8:2bf886335fd0 | 18 | #define BLUE_LED_PIN (PE_1) |
jurica238814 | 8:2bf886335fd0 | 19 | |
jurica238814 | 8:2bf886335fd0 | 20 | extern DigitalOut redLed; |
jurica238814 | 8:2bf886335fd0 | 21 | extern DigitalOut blueLed; |
jurica238814 | 8:2bf886335fd0 | 22 | extern DigitalOut greenLed; |
jurica238814 | 8:2bf886335fd0 | 23 | |
jurica238814 | 8:2bf886335fd0 | 24 | |
jurica238814 | 8:2bf886335fd0 | 25 | enum led_state{ |
jurica238814 | 8:2bf886335fd0 | 26 | LED_ON = 0, |
jurica238814 | 8:2bf886335fd0 | 27 | LED_OFF = 1 |
jurica238814 | 8:2bf886335fd0 | 28 | }; |
jurica238814 | 8:2bf886335fd0 | 29 | |
jurica238814 | 8:2bf886335fd0 | 30 | void bsp_init(); |
jurica238814 | 8:2bf886335fd0 | 31 | int bsp_read_button(); |
jurica238814 | 8:2bf886335fd0 | 32 | void bsp_ctrl_led(DigitalOut led, led_state state); |
jurica238814 | 8:2bf886335fd0 | 33 | void bsp_toggle_led(DigitalOut led); |
jurica238814 | 8:2bf886335fd0 | 34 | |
jurica238814 | 8:2bf886335fd0 | 35 | #endif // __STM_BSP_H__ |