mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #10875 from hydra/bf-fix-bitbang-dshot
This commit is contained in:
parent
ac4170cbc7
commit
9c84c4f398
2 changed files with 5 additions and 6 deletions
|
@ -548,22 +548,21 @@ static void bbUpdateComplete(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
for (int i = 0; i < usedMotorPorts; i++) {
|
||||
bbPort_t *bbPort = &bbPorts[i];
|
||||
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
if (useDshotTelemetry) {
|
||||
if (bbPort->direction == DSHOT_BITBANG_DIRECTION_INPUT) {
|
||||
bbPort->inputActive = false;
|
||||
bbSwitchToOutput(bbPort);
|
||||
}
|
||||
|
||||
|
||||
bbDMA_Cmd(bbPort, ENABLE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bbDMA_Cmd(bbPort, ENABLE);
|
||||
}
|
||||
|
||||
lastSendUs = micros();
|
||||
for (int i = 0; i < usedMotorPacers; i++) {
|
||||
bbPacer_t *bbPacer = &bbPacers[i];
|
||||
|
|
|
@ -45,6 +45,7 @@ mpuRegion_t mpuRegions[] = {
|
|||
.bufferable = MPU_ACCESS_BUFFERABLE,
|
||||
},
|
||||
#endif
|
||||
#ifdef USE_DMA_RAM
|
||||
{
|
||||
// DMA transmit buffer in D2 SRAM1
|
||||
// Reading needs cache coherence operation
|
||||
|
@ -57,7 +58,6 @@ mpuRegion_t mpuRegions[] = {
|
|||
.cacheable = MPU_ACCESS_CACHEABLE,
|
||||
.bufferable = MPU_ACCESS_NOT_BUFFERABLE,
|
||||
},
|
||||
#ifdef USE_SDCARD_SDIO
|
||||
{
|
||||
// A region in AXI RAM accessible from SDIO internal DMA
|
||||
.start = (uint32_t)&dmarwaxi_start,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue