test1
Diff: source/BlueNRGDevice.cpp
- Revision:
- 183:3bc6d59b9c81
- Parent:
- 173:821942ac7d5a
- Child:
- 191:d22cc4715b0c
- Child:
- 216:7aa807180321
--- a/source/BlueNRGDevice.cpp Fri Nov 13 16:31:14 2015 +0100 +++ b/source/BlueNRGDevice.cpp Thu Nov 19 11:04:31 2015 +0100 @@ -139,14 +139,6 @@ // Set the interrupt handler for the device irq_.mode(PullDown); // betzw: set irq mode irq_.rise(&HCI_Isr); - - // betzw - WORKAROUND: exploit current mbed 'InterruptIn' implementation - // to handle spurious BlueNRG interrupts - irq_.fall(&HCI_Isr); // attach IRQ handler & enable IRQ - irq_.fall(NULL); // this doesn't clear the attachment but just disables the IRQ! - // In this way spurious BlueNRG interrupts (e.g. IRQs happening - // even without being enabled) end up in a real IRQ handler - // function rather than in a NULL pointer (i.e. in a hard fault). /* ToDo: Clear memory contents, reset the SD, etc. */ // By default, we set the device GAP role to PERIPHERAL