mirror of https://github.com/ARMmbed/mbed-os.git
Address ARMCC warnings and make sure targets have SPI and InterruptIn in PN512SPITransportDriver
parent
3fa0c5e730
commit
1252590a16
|
@ -38,4 +38,4 @@
|
|||
#define ACORE_STDIO_PRINT(...) printf(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
|
||||
private:
|
||||
// PN512TransportDriver::Delegate implementation
|
||||
void on_hw_interrupt();
|
||||
virtual void on_hw_interrupt();
|
||||
|
||||
PN512TransportDriver *_transport_driver;
|
||||
pn512_t _pn512;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue