summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/msp430fr5969lp/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc
index b3cfbf6..cde0503 100644
--- a/src/arch/msp430fr5969lp/arch.cc
+++ b/src/arch/msp430fr5969lp/arch.cc
@@ -105,13 +105,13 @@ volatile char run_loop = 0;
void Arch::delay_us(unsigned int const us)
{
for (unsigned int i = 0; i < us/10; i++) {
- __delay_cycles(160);
+ __delay_cycles(F_CPU / 100000UL);
}
}
void Arch::delay_ms(unsigned int const ms)
{
for (unsigned int i = 0; i < ms; i++) {
- __delay_cycles(16000);
+ __delay_cycles(F_CPU / 1000UL);
}
}