[Horus] S.PORT to Lua passthrough (#3810)

* [Horus] S.PORT to Lua passthrough

* Fixes. Still not tested

* Do not speak when we have nothing to say

* Move outputTelemetryBufferSize check earlier
This commit is contained in:
Bertrand Songis
2016-10-08 09:40:31 +02:00
committed by GitHub
parent 7509146a8f
commit 8c1231869e
3 changed files with 34 additions and 22 deletions
+5
View File
@@ -43,6 +43,11 @@ class DMAFifo
return N;
}
uint8_t last(int index)
{
return fifo[(2*N - stream->NDTR - index) & (N-1)];
}
bool isEmpty()
{
#if defined(SIMU)