miguelbalboa / rfid

Arduino RFID Library for MFRC522
The Unlicense
2.75k stars 1.43k forks source link

Add architecture mbed, Fix MFRC522_SPICLOCK error to Arduino Nano33BLE #498

Closed ghost closed 4 years ago

ghost commented 4 years ago

Remove compile warning on Arduino Nano33BLE. mbed architecture SPI.h not defined SPI_CLOCK_DIV, so add MFRC522_SPICLOCK define.

Q A
Bug fix? yes
New feature? no
Doc update? no
BC breaks? no
Deprecations? no
Fixed tickets #...
Rotzbua commented 4 years ago

Precompiler switches should be avoided. Same for board depended code. You can inject MFRC522_SPICLOCK as compile flag. Otherwise I think the board implementation of the Arduino api should be fixed? Injectable SPI is available at the fork.