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.
Fork of X_NUCLEO_IDB0XA1 by
Revision 168:ad1dff5dca1f, committed 2015-11-04
- Comitter:
- Wolfgang Betz
- Date:
- Wed Nov 04 14:23:19 2015 +0100
- Parent:
- 167:abc42e7158a6
- Child:
- 169:485bbcddf0c3
- Commit message:
- Remove instance variable 'instanceID'
Changed in this revision
| source/BlueNRGDevice.cpp | Show annotated file Show diff for this revision Revisions of this file |
| x-nucleo-idb0xa1/BlueNRGDevice.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/BlueNRGDevice.cpp Wed Nov 04 10:12:19 2015 +0100
+++ b/source/BlueNRGDevice.cpp Wed Nov 04 14:23:19 2015 +0100
@@ -96,10 +96,9 @@
PinName sck,
PinName cs,
PinName rst,
- PinName irq) : spi_(mosi, miso, sck), nCS_(cs), rst_(rst), irq_(irq)
+ PinName irq) :
+ isInitialized(false), spi_(mosi, miso, sck), nCS_(cs), rst_(rst), irq_(irq)
{
- isInitialized = false;
-
// Setup the spi for 8 bit data, low clock polarity,
// 1-edge phase, with an 8MHz clock rate
spi_.format(8, 0);
@@ -141,8 +140,6 @@
irq_.mode(PullNone); // betzw: set irq mode
irq_.rise(&HCI_Isr);
- instanceID = instanceID;
-
/* ToDo: Clear memory contents, reset the SD, etc. */
// By default, we set the device GAP role to PERIPHERAL
btle_init(BlueNRGGap::getInstance().getIsSetAddress(), GAP_PERIPHERAL_ROLE_IDB04A1);
--- a/x-nucleo-idb0xa1/BlueNRGDevice.h Wed Nov 04 10:12:19 2015 +0100
+++ b/x-nucleo-idb0xa1/BlueNRGDevice.h Wed Nov 04 14:23:19 2015 +0100
@@ -89,7 +89,6 @@
private:
bool isInitialized;
- BLE::InstanceID_t instanceID;
SPI spi_;
DigitalOut nCS_;
