Use USB VCP as a normal serial driver as well

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:14 +01:00
parent 530d395204
commit b39baa2360
37 changed files with 357 additions and 248 deletions
+4 -2
View File
@@ -77,8 +77,9 @@ const etx_serial_driver_t IntmoduleSerialDriver = {
.sendBuffer = sendBuffer,
.waitForTxCompleted = waitForTxCompleted,
.getByte = getByte,
.getBaudrate = nullptr,
.setReceiveCb = nullptr,
.setOnErrorCb = nullptr,
.setBaudrateCb = nullptr,
};
const etx_serial_driver_t ExtmoduleSerialDriver = {
@@ -88,6 +89,7 @@ const etx_serial_driver_t ExtmoduleSerialDriver = {
.sendBuffer = sendBuffer,
.waitForTxCompleted = waitForTxCompleted,
.getByte = getByte,
.getBaudrate = nullptr,
.setReceiveCb = nullptr,
.setOnErrorCb = nullptr,
.setBaudrateCb = nullptr,
};