All tested compilers & make build now have proper timing for tx switching (gcc 4.9.3, O0, Os, O3, gcc 6.3. O0, O3)

This commit is contained in:
danilo 2017-04-02 03:09:30 +02:00
parent 02ee23b684
commit 70457f269e
6 changed files with 104 additions and 66 deletions

View file

@ -280,9 +280,9 @@ void CIO::COS_pin(bool on)
digitalWrite(PIN_COS_LED, on ? HIGH : LOW);
}
// TODO: Investigate why. In fact there is just a single place where this is being use
// during normal operation
#pragma GCC optimize ("O0")
void CIO::delay_us(uint32_t us) {
::delayMicroseconds(us);
}
void CIO::dlybit(void)
{
asm volatile("nop \n\t"