Skip to content

Commit 1252590

Browse files
author
Donatien Garnier
committed
Address ARMCC warnings and make sure targets have SPI and InterruptIn in PN512SPITransportDriver
1 parent 3fa0c5e commit 1252590

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

features/nfc/acore/acore/ac_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
#define ACORE_STDIO_PRINT(...) printf(__VA_ARGS__)
3939
#endif
4040

41-
#endif
41+
#endif

features/nfc/controllers/PN512Driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class PN512Driver : public NFCControllerDriver, private PN512TransportDriver::De
3939

4040
private:
4141
// PN512TransportDriver::Delegate implementation
42-
void on_hw_interrupt();
42+
virtual void on_hw_interrupt();
4343

4444
PN512TransportDriver *_transport_driver;
4545
pn512_t _pn512;

features/nfc/source/controllers/PN512SPITransportDriver.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
#include "platform/platform.h"
18+
19+
#if (defined (DEVICE_SPI) && defined (DEVICE_INTERRUPTIN)) || defined(DOXYGEN_ONLY)
20+
1721
#include "PN512SPITransportDriver.h"
1822

1923
#include "stack/transceiver/transceiver.h"
@@ -109,3 +113,5 @@ void PN512SPITransportDriver::s_transport_read(uint8_t address, uint8_t *inBuf,
109113
PN512SPITransportDriver *self = (PN512SPITransportDriver *)pUser;
110114
self->transport_read(address, inBuf, inLen);
111115
}
116+
117+
#endif

0 commit comments

Comments
 (0)