diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-08-07 17:31:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-08-07 17:31:33 +0200 |
commit | 8579b2a1023211c86cb1221eb2b44b9221034478 (patch) | |
tree | c0e256b57aeedbe387868e39f9754b4d3479e4ba /src/arch | |
parent | 55786418160429b7e974336758dd785d9feeb5fa (diff) |
arch: Add delay_ms function
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/arduino-nano/arch.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc index fda518c..7f18c38 100644 --- a/src/arch/arduino-nano/arch.cc +++ b/src/arch/arduino-nano/arch.cc @@ -65,7 +65,12 @@ void Arch::idle(void) void Arch::delay_us(unsigned char const us) { - __builtin_avr_delay_cycles(1600); + _delay_us(us); +} + +void Arch::delay_ms(unsigned char const ms) +{ + _delay_ms(ms); } Arch arch; |