Merge pull request #4 from db4ple/master

Working baseline, …
This commit is contained in:
Andy CA6JAU 2017-03-31 17:27:19 -03:00 committed by GitHub
commit fb25bea0ba
5 changed files with 102 additions and 69 deletions

View file

@ -124,11 +124,6 @@ void CIO::delay_rx() {
#endif
}
void CIO::dlybit(void)
{
delayMicroseconds(1);
}
void CIO::Init()
{
#if defined (__STM32F1__)
@ -285,4 +280,15 @@ 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::dlybit(void)
{
asm volatile("nop \n\t"
"nop \n\t"
"nop \n\t"
);
}
#endif