Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot-mbed5 DOGS102 ISL29011 MMA845x MPL3115A2 NCP5623B X_NUCLEO_IKS01A1 Senet_Packet
Fork of MTDOT-UDKDemo_Senet by
board/board_common.cpp
- Committer:
- Shaun Nelson
- Date:
- 2017-08-24
- Branch:
- develop
- Revision:
- 27:1753a44fa9ec
File content as of revision 27:1753a44fa9ec:
/***
* _____ _
* / ____| | |
* | (___ ___ _ __ ___ | |_
* \___ \ / _ \ | '_ \ / _ \ | __|
* ____) | | __/ | | | | | __/ | |_
* |_____/ \___| |_| |_| \___| \__|
* (C) 2016 Senet, Inc
*
*/
#include "board.h"
#include "ChannelPlans.h"
mDot *mDotPtr = NULL;
DigitalOut appLED(PA_0);
// To be implemented by the target
extern void BoardInit();
extern void BoardStart();
extern void BoardStop();
void BoardCommonInit()
{
if(mDotPtr == NULL)
{
lora::ChannelPlan* plan = new lora::ChannelPlan_US915();
assert(plan);
mDotPtr = mDot::getInstance(plan);
assert(mDotPtr);
}
debugUART.baud(115200);
}
void BoardSetState( EBoardState state )
{
switch (state)
{
case Board_init:
BoardCommonInit();
BoardInit();
break;
case Board_start:
BoardStart();
break;
case Board_stop:
BoardStop();
default:
break;
}
}
