Skip to content

Commit 08a52c8

Browse files
authored
Merge pull request #3 from cparata/main
Move the interrupt management inside the ST25R3911B library
2 parents 3486737 + d40d379 commit 08a52c8

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

examples/X_NUCLEO_NFC05A1_HelloWorld/X_NUCLEO_NFC05A1_HelloWorld.ino

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
* INCLUDES
5454
******************************************************************************
5555
*/
56-
#include "SPI.h"
5756
#include "nfc_utils.h"
5857
#include "rfal_nfc.h"
5958
#include "rfal_rfst25r3911.h"
@@ -225,7 +224,6 @@ static const ndefTypeDumpTable typeDumpTable[] = {
225224
};
226225

227226
static char *hex2Str(unsigned char *data, size_t dataLen);
228-
void IRQCallback();
229227

230228

231229
/*!
@@ -296,14 +294,11 @@ void setup()
296294
pinMode(LED_V_PIN, OUTPUT);
297295
pinMode(LED_AP2P_PIN, OUTPUT);
298296
pinMode(LED_FIELD_PIN, OUTPUT);
299-
pinMode(IRQ_PIN, INPUT);
300297
pinMode(USER_BTN, INPUT);
301298

302299
/* Check what is the Push Button State when the button is not pressed. It can change across families */
303300
PushButtonState = (digitalRead(USER_BTN)) ? 0 : 1;
304301

305-
attachInterrupt(IRQ_PIN, IRQCallback, RISING);
306-
307302
Serial.println("Welcome to X-NUCLEO-NFC05A1");
308303

309304
ndefShowDemoUsage();
@@ -1797,9 +1792,4 @@ char *hex2Str(unsigned char *data, size_t dataLen)
17971792
return hexStr[idx];
17981793
}
17991794

1800-
void IRQCallback()
1801-
{
1802-
rfst25r3911b.st25r3911Isr();
1803-
}
1804-
18051795
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=STM32duino X-NUCLEO-NFC05A1
2-
version=1.0.0
2+
version=1.0.1
33
author=STMicroelectronics
44
maintainer=stm32duino
55
sentence=Allows controlling the ST X-NUCLEO-NFC05A1 expansion board

0 commit comments

Comments
 (0)