diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arduino-nano/arch.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc index f35cb1d..16d09fb 100644 --- a/src/arch/arduino-nano/arch.cc +++ b/src/arch/arduino-nano/arch.cc @@ -1,6 +1,7 @@ #include "arch.h" #include <avr/io.h> #include <avr/interrupt.h> +#include <util/delay.h> void Arch::setup(void) { @@ -54,6 +55,11 @@ void Arch::idle_loop(void) } } +void Arch::delay_us(unsigned char const us) +{ + __builtin_avr_delay_cycles(1600); +} + Arch arch; #if defined(WITH_LOOP) || defined(TIMER_S) |