summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/arch.h1
l---------include/arch/arduino-nano-1681
-rw-r--r--src/arch/arduino-nano/arch.cc7
3 files changed, 8 insertions, 1 deletions
diff --git a/include/arch.h b/include/arch.h
index a053b58..8024818 100644
--- a/include/arch.h
+++ b/include/arch.h
@@ -11,6 +11,7 @@ class Arch {
void idle_loop();
void idle();
void delay_us(unsigned char const us);
+ void delay_ms(unsigned char const ms);
};
extern Arch arch;
diff --git a/include/arch/arduino-nano-168 b/include/arch/arduino-nano-168
new file mode 120000
index 0000000..fd8c755
--- /dev/null
+++ b/include/arch/arduino-nano-168
@@ -0,0 +1 @@
+arduino-nano \ No newline at end of file
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;