microbit: Integrate Multicast peer to peer communications into MicroBit.cpp

- Added instance variable and constructor call in MircoBit.cpp
  - Added event definitions for RADIO related indications
master
Joe Finney 2016-02-01 04:40:21 +00:00
parent d9d2343ab6
commit 336c30f2ec
3 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "MicroBitMessageBus.h"
#include "MicroBitBLEManager.h"
#include "MicroBitRadio.h"
// MicroBit::flags values
#define MICROBIT_FLAG_SCHEDULER_RUNNING 0x00000001
@ -103,6 +104,7 @@ class MicroBit
// Bluetooth related member variables.
MicroBitBLEManager bleManager;
MicroBitRadio radio;
BLEDevice *ble;
/**

View File

@ -44,6 +44,8 @@
#define MICROBIT_ID_GESTURE 27 // Gesture events
#define MICROBIT_ID_THERMOMETER 28
#define MICROBIT_ID_RADIO 29
#define MICROBIT_ID_RADIO_DATA_READY 30
#define MICROBIT_ID_NOTIFY 1023 // Notfication channel, for general purpose synchronisation
#define MICROBIT_ID_NOTIFY_ONE 1022 // Notfication channel, for general purpose synchronisation

View File

@ -105,6 +105,7 @@ MicroBit::MicroBit() :
MICROBIT_ID_IO_P15,MICROBIT_ID_IO_P16,MICROBIT_ID_IO_P19,
MICROBIT_ID_IO_P20),
bleManager(),
radio(MICROBIT_ID_RADIO),
ble(NULL)
{
}