BLE test

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
191:d22cc4715b0c
Parent:
177:65d9b1b75fca
Parent:
183:3bc6d59b9c81
Child:
242:058b2e731adc
--- a/source/BlueNRGDevice.cpp	Wed Nov 18 15:17:24 2015 +0000
+++ b/source/BlueNRGDevice.cpp	Fri Nov 20 16:59:49 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