We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5cbbe4 commit a1b86feCopy full SHA for a1b86fe
mbed-os-to-arduino
@@ -209,13 +209,14 @@ a
209
wq
210
EOF
211
fi
212
+ mv "$ARDUINOCOREMBED"/mbed.h "$ARDUINOCOREMBED"/mbed_wrap.h
213
echo " done."
214
}
215
216
patch_spi_h () {
217
echo -n "Patching SPI headers..."
218
mv "$ARDUINOCOREMBED"/drivers/SPI.h "$ARDUINOCOREMBED"/drivers/SPIMaster.h
- for header in mbed.h features/nfc/controllers/PN512SPITransportDriver.h components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h; do
219
+ for header in mbed_wrap.h features/nfc/controllers/PN512SPITransportDriver.h components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.h; do
220
sed -i.bak 's#drivers/SPI\.h#drivers/SPIMaster\.h#g' "$ARDUINOCOREMBED"/$header
221
rm "$ARDUINOCOREMBED"/$header.bak
222
done
0 commit comments