We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2cde2e + 3fbad10 commit 64575feCopy full SHA for 64575fe
drivers/SPI.cpp
@@ -83,6 +83,12 @@ void SPI::_do_construct()
83
_peripheral->name = name;
84
}
85
core_util_critical_section_exit();
86
+
87
+#if DEVICE_SPI_ASYNCH && TRANSACTION_QUEUE_SIZE_SPI
88
+ // prime the SingletonPtr, so we don't have a problem trying to
89
+ // construct the buffer if asynch operation initiated from IRQ
90
+ _peripheral->transaction_buffer.get();
91
+#endif
92
// we don't need to _acquire at this stage.
93
// this will be done anyway before any operation.
94
0 commit comments