Do not use DMA based send in passthrough mode
The USB buffer could be located and CCM, which does not work with DMA.
This commit is contained in:
+4
-2
@@ -916,8 +916,10 @@ int cliSet(const char **argv)
|
|||||||
#if defined(ENABLE_SERIAL_PASSTHROUGH)
|
#if defined(ENABLE_SERIAL_PASSTHROUGH)
|
||||||
static void spInternalModuleTx(uint8_t* buf, uint32_t len)
|
static void spInternalModuleTx(uint8_t* buf, uint32_t len)
|
||||||
{
|
{
|
||||||
intmoduleSendBuffer(buf, len);
|
while (len > 0) {
|
||||||
intmoduleWaitForTxCompleted();
|
intmoduleSendByte(*(buf++));
|
||||||
|
len--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void spInternalModuleSetBaudRate(uint32_t baud)
|
static void spInternalModuleSetBaudRate(uint32_t baud)
|
||||||
|
|||||||
Reference in New Issue
Block a user