Skip to content

Commit 365e397

Browse files
authored
Merge pull request #2 from cparata/main
Move the interrupt management inside the ST25R3916 library
2 parents 3b68269 + 0103952 commit 365e397

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

examples/X_NUCLEO_NFC06A1_HelloWorld/X_NUCLEO_NFC06A1_HelloWorld.ino

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ static const ndefTypeDumpTable typeDumpTable[] = {
233233
};
234234

235235
static char *hex2Str(unsigned char *data, size_t dataLen);
236-
void IRQCallback();
237236

238237

239238
/*!
@@ -311,14 +310,11 @@ void setup()
311310
pinMode(LED_V_PIN, OUTPUT);
312311
pinMode(LED_AP2P_PIN, OUTPUT);
313312
pinMode(LED_FIELD_PIN, OUTPUT);
314-
pinMode(IRQ_PIN, INPUT);
315313
pinMode(USER_BTN, INPUT);
316314

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

320-
attachInterrupt(IRQ_PIN, IRQCallback, RISING);
321-
322318
Serial.println("Welcome to X-NUCLEO-NFC06A1");
323319

324320
ndefShowDemoUsage();
@@ -1812,9 +1808,4 @@ char *hex2Str(unsigned char *data, size_t dataLen)
18121808
return hexStr[idx];
18131809
}
18141810

1815-
void IRQCallback()
1816-
{
1817-
rfst25r3916.st25r3916Isr();
1818-
}
1819-
18201811
/************************ (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-NFC06A1
2-
version=1.0.0
2+
version=1.0.1
33
author=STMicroelectronics
44
maintainer=stm32duino
55
sentence=Allows controlling the ST X-NUCLEO-NFC06A1 expansion board

0 commit comments

Comments
 (0)