Fixed some more mockup drivers

This commit is contained in:
Raphael Coeffic
2022-03-20 16:22:12 +01:00
parent 0d2bc7e0c2
commit 6ac8d50c40
7 changed files with 79 additions and 2 deletions
+17
View File
@@ -21,19 +21,26 @@
#include "hal/serial_driver.h"
#include "intmodule_serial_driver.h"
#include "extmodule_serial_driver.h"
#include "io/frsky_pxx2.h"
ModuleFifo intmoduleFifo;
ModuleFifo extmoduleFifo;
void intmoduleStop() {}
void intmoduleFifoError() {}
void intmoduleFifoReceive(uint8_t){}
void intmodulePxx1PulsesStart() {}
void intmoduleSendNextFramePxx1() {}
void extmoduleStop() {}
void extmoduleFifoError() {}
void extmoduleFifoReceive(uint8_t){}
void extmodulePpmStart() {}
void extmoduleSerialStart() {}
void extmodulePxx1SerialStart() {}
void extmodulePxx1PulsesStart() {}
void extmoduleSendInvertedByte(uint8_t) {}
void extmoduleSendNextFramePxx1(void const*, unsigned short) {}
@@ -70,3 +77,13 @@ const etx_serial_driver_t IntmoduleSerialDriver = {
.setReceiveCb = nullptr,
.setOnErrorCb = nullptr,
};
const etx_serial_driver_t ExtmoduleSerialDriver = {
.init = init,
.deinit = deinit,
.sendByte = sendByte,
.sendBuffer = sendBuffer,
.waitForTxCompleted = waitForTxCompleted,
.setReceiveCb = nullptr,
.setOnErrorCb = nullptr,
};