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
Revision 6:4d61a0f32573, committed 2018-02-23
- Comitter:
- Mudassar Hussain
- Date:
- Fri Feb 23 18:28:32 2018 +0500
- Parent:
- 5:8f44dab9cb6b
- Commit message:
- Updated thread calling, old thread call is depreciated
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8f44dab9cb6b -r 4d61a0f32573 main.cpp --- a/main.cpp Fri Feb 23 18:26:53 2018 +0500 +++ b/main.cpp Fri Feb 23 18:28:32 2018 +0500 @@ -102,7 +102,8 @@ onboard_modem_power_up(); // Create threadUserButtonCheck thread - Thread threadUserButtonCheck(threadBodyUserButtonCheck); + Thread user_button(osPriorityNormal); + user_button.start(callback(threadBodyUserButtonCheck, (void *)"User Button Thread")); //Set GNSS IO On