summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/msp430fr5969lp/arch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc
index ddb84a4..04a52c9 100644
--- a/src/arch/msp430fr5969lp/arch.cc
+++ b/src/arch/msp430fr5969lp/arch.cc
@@ -78,6 +78,12 @@ void Arch::delay_us(unsigned char const us)
__delay_cycles(160);
}
}
+void Arch::delay_ms(unsigned char const ms)
+{
+ for (int i = 0; i < ms; i++) {
+ __delay_cycles(16000);
+ }
+}
void Arch::idle_loop(void)
{