Skip to content
Snippets Groups Projects
Commit 4f09b621 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

MSP430: Add delay_ms

parent 178835c1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment