[Horus / Taranis] S.PORT telemetry now uses the DMA. I think the buffer could be reduced, 512bytes seems really big

This commit is contained in:
Bertrand Songis
2016-03-18 21:49:06 +01:00
parent e810367284
commit 5cb6884ab3
20 changed files with 492 additions and 252 deletions
+4 -4
View File
@@ -337,9 +337,9 @@ bool sportWaitState(SportUpdateState state, int timeout)
return true;
#else
for (int i=timeout/2; i>=0; i--) {
uint8_t data ;
while (telemetryFifo.pop(data)) {
processSerialData(data);
uint8_t byte ;
while (telemetryGetByte(&byte)) {
processSerialData(byte);
}
if (sportUpdateState == state) {
return true;
@@ -358,7 +358,7 @@ void blankPacket(uint8_t *packet)
memset(packet+2, 0, 6);
}
uint8_t sportUpdatePacket[16];
uint8_t sportUpdatePacket[16] __DMA;
void writePacket(uint8_t * packet)
{