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.cpp@9:f943c09d9173, 2018-12-19 (annotated)
- Committer:
- jurica238814
- Date:
- Wed Dec 19 15:12:25 2018 +0100
- Revision:
- 9:f943c09d9173
- Parent:
- 8:2bf886335fd0
Stable version
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 | #include "mbed.h" |
jurica238814 | 8:2bf886335fd0 | 8 | #include "STM32Bsp.h" |
jurica238814 | 8:2bf886335fd0 | 9 | |
jurica238814 | 8:2bf886335fd0 | 10 | /* |
jurica238814 | 8:2bf886335fd0 | 11 | DigitalOut redLed(RED_LED_PIN); |
jurica238814 | 8:2bf886335fd0 | 12 | DigitalOut blueLed(BLUE_LED_PIN); |
jurica238814 | 8:2bf886335fd0 | 13 | DigitalOut greenLed(GREEN_LED_PIN); |
jurica238814 | 8:2bf886335fd0 | 14 | */ |
jurica238814 | 8:2bf886335fd0 | 15 | void bsp_init() |
jurica238814 | 8:2bf886335fd0 | 16 | { |
jurica238814 | 8:2bf886335fd0 | 17 | bsp_ctrl_led(redLed, LED_OFF); |
jurica238814 | 8:2bf886335fd0 | 18 | bsp_ctrl_led(greenLed, LED_OFF); |
jurica238814 | 8:2bf886335fd0 | 19 | bsp_ctrl_led(blueLed, LED_OFF); |
jurica238814 | 8:2bf886335fd0 | 20 | } |
jurica238814 | 8:2bf886335fd0 | 21 | |
jurica238814 | 8:2bf886335fd0 | 22 | void bsp_ctrl_led(DigitalOut led, led_state state) |
jurica238814 | 8:2bf886335fd0 | 23 | { |
jurica238814 | 8:2bf886335fd0 | 24 | led = state; |
jurica238814 | 8:2bf886335fd0 | 25 | } |
jurica238814 | 8:2bf886335fd0 | 26 | |
jurica238814 | 8:2bf886335fd0 | 27 | void bsp_toggle_led(DigitalOut led) |
jurica238814 | 8:2bf886335fd0 | 28 | { |
jurica238814 | 8:2bf886335fd0 | 29 | led = !led; |
jurica238814 | 8:2bf886335fd0 | 30 | } |
jurica238814 | 8:2bf886335fd0 | 31 | |
jurica238814 | 8:2bf886335fd0 | 32 | int bsp_read_button() |
jurica238814 | 8:2bf886335fd0 | 33 | { |
jurica238814 | 8:2bf886335fd0 | 34 | //return userButton.read(); |
jurica238814 | 8:2bf886335fd0 | 35 | } |