diff --git a/features/nfc/acore/acore/ac_debug.h b/features/nfc/acore/acore/ac_debug.h index 83ce0d6935..2348514e91 100644 --- a/features/nfc/acore/acore/ac_debug.h +++ b/features/nfc/acore/acore/ac_debug.h @@ -38,4 +38,4 @@ #define ACORE_STDIO_PRINT(...) printf(__VA_ARGS__) #endif -#endif \ No newline at end of file +#endif diff --git a/features/nfc/controllers/PN512Driver.h b/features/nfc/controllers/PN512Driver.h index 1af39e350c..91a677889f 100644 --- a/features/nfc/controllers/PN512Driver.h +++ b/features/nfc/controllers/PN512Driver.h @@ -39,7 +39,7 @@ public: private: // PN512TransportDriver::Delegate implementation - void on_hw_interrupt(); + virtual void on_hw_interrupt(); PN512TransportDriver *_transport_driver; pn512_t _pn512; diff --git a/features/nfc/source/controllers/PN512SPITransportDriver.cpp b/features/nfc/source/controllers/PN512SPITransportDriver.cpp index f8b09eb72b..1fb9f99e62 100644 --- a/features/nfc/source/controllers/PN512SPITransportDriver.cpp +++ b/features/nfc/source/controllers/PN512SPITransportDriver.cpp @@ -14,6 +14,10 @@ * limitations under the License. */ +#include "platform/platform.h" + +#if (defined (DEVICE_SPI) && defined (DEVICE_INTERRUPTIN)) || defined(DOXYGEN_ONLY) + #include "PN512SPITransportDriver.h" #include "stack/transceiver/transceiver.h" @@ -109,3 +113,5 @@ void PN512SPITransportDriver::s_transport_read(uint8_t address, uint8_t *inBuf, PN512SPITransportDriver *self = (PN512SPITransportDriver *)pUser; self->transport_read(address, inBuf, inLen); } + +#endif