summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-08-07 17:31:33 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-08-07 17:31:33 +0200
commit8579b2a1023211c86cb1221eb2b44b9221034478 (patch)
treec0e256b57aeedbe387868e39f9754b4d3479e4ba /src/arch
parent55786418160429b7e974336758dd785d9feeb5fa (diff)
arch: Add delay_ms function
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arduino-nano/arch.cc7
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;