Example program demonstrate the use of the User LEDs and the User Button. The example also initializes the I2C3 Bus for the battery charger BQ24295, sets the battery charger and the cellular module driver, powers up the cellular module. However, the UART2 , which is used for communicating with the module, is not configured. Hence, the Serial USB Sniffer could be used for exercising AT commands from a development PC.

Dependencies:   ublox-cellular-base ublox-cellular-driver-gen battery-charger-bq24295 gnss

Files at this revision

API Documentation at this revision

Comitter:
Mudassar Hussain
Date:
Fri Feb 23 18:26:53 2018 +0500
Parent:
4:d9c8f1687bfc
Child:
6:4d61a0f32573
Commit message:
Removed unused libraries and variables

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
ublox-cellular-base.lib Show diff for this revision Revisions of this file
ublox-cellular-driver-gen.lib Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Feb 22 07:19:57 2018 +0000
+++ b/main.cpp	Fri Feb 23 18:26:53 2018 +0500
@@ -17,7 +17,6 @@
 #include "mbed.h"
 #include "gnss.h"
 #include "battery_charger_bq24295.h"
-#include "UbloxCellularDriverGen.h"
 #include "onboard_modem_api.h"
 
 // Set the minimum input voltage limit for the BQ24295 to 3.8 Volt
@@ -56,7 +55,6 @@
 
 // To check if the user pressed the User Button or not
 void threadBodyUserButtonCheck(void const *args){
-    float delayToggle = delay;
     while (1){
         if (userButton.read() == 1 ) {
         // User Button is pressed 
--- a/ublox-cellular-base.lib	Thu Feb 22 07:19:57 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/teams/ublox/code/ublox-cellular-base/#e420232ee4e7
--- a/ublox-cellular-driver-gen.lib	Thu Feb 22 07:19:57 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/teams/ublox/code/ublox-cellular-driver-gen/#a9eea2dbdd68