mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-07 15:23:43 +00:00
Working baseline, works with -O0 -- -O3 AND -O0 with gcc 4.9.3 Ubuntu. TX to RX switch timing is the challenge. IOArduino.cpp may not work
This commit is contained in:
parent
3a4451684f
commit
aefe492f9b
5 changed files with 102 additions and 69 deletions
|
|
@ -124,11 +124,6 @@ void CIO::delay_rx() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void CIO::dlybit(void)
|
||||
{
|
||||
delayMicroseconds(1);
|
||||
}
|
||||
|
||||
void CIO::Init()
|
||||
{
|
||||
#if defined (__STM32F1__)
|
||||
|
|
@ -289,4 +284,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue