simulator fixes
This commit is contained in:
@@ -45,6 +45,9 @@ class DMAFifo
|
|||||||
|
|
||||||
bool isEmpty()
|
bool isEmpty()
|
||||||
{
|
{
|
||||||
|
#if defined(SIMU)
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
return (ridx == N - stream->NDTR);
|
return (ridx == N - stream->NDTR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ void processSbusFrame(uint8_t * sbus, int16_t * pulses, uint32_t size)
|
|||||||
|
|
||||||
void processSbusInput()
|
void processSbusInput()
|
||||||
{
|
{
|
||||||
|
#if !defined(SIMU)
|
||||||
uint8_t rxchar;
|
uint8_t rxchar;
|
||||||
uint32_t active = 0;
|
uint32_t active = 0;
|
||||||
while (sbusGetByte(&rxchar)) {
|
while (sbusGetByte(&rxchar)) {
|
||||||
@@ -94,4 +95,5 @@ void processSbusInput()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,5 @@
|
|||||||
#define SBUS_MAX_FRAME_SIZE 28
|
#define SBUS_MAX_FRAME_SIZE 28
|
||||||
|
|
||||||
void processSbusInput();
|
void processSbusInput();
|
||||||
void processSbusFrame(uint8_t * sbus, int16_t * pulses, uint32_t size);
|
|
||||||
|
|
||||||
#endif // _SBUS_H_
|
#endif // _SBUS_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user