Address ARMCC warnings and make sure targets have SPI and InterruptIn in PN512SPITransportDriver

pull/7822/head
Donatien Garnier 2018-08-29 19:46:05 +01:00
parent 3fa0c5e730
commit 1252590a16
3 changed files with 8 additions and 2 deletions

View File

@ -38,4 +38,4 @@
#define ACORE_STDIO_PRINT(...) printf(__VA_ARGS__)
#endif
#endif
#endif

View File

@ -39,7 +39,7 @@ public:
private:
// PN512TransportDriver::Delegate implementation
void on_hw_interrupt();
virtual void on_hw_interrupt();
PN512TransportDriver *_transport_driver;
pn512_t _pn512;

View File

@ -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