Mercurial > louis > kiibohd-controller
comparison Lib/delay.h @ 308:ab4515606277
Fix whitespace
Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 18:40:01 -0700 |
parents | 6ac92b8614c0 |
children | 772f9bea482b |
comparison
equal
deleted
inserted
replaced
305:4617ef5e06f1 | 308:ab4515606277 |
---|---|
67 uint32_t n = usec << 4; | 67 uint32_t n = usec << 4; |
68 #elif F_CPU == 24000000 | 68 #elif F_CPU == 24000000 |
69 uint32_t n = usec << 3; | 69 uint32_t n = usec << 3; |
70 #endif | 70 #endif |
71 asm volatile( | 71 asm volatile( |
72 "L_%=_delayMicroseconds:" "\n\t" | 72 "L_%=_delayMicroseconds:" "\n\t" |
73 "subs %0, #1" "\n\t" | 73 "subs %0, #1" "\n\t" |
74 "bne L_%=_delayMicroseconds" "\n" | 74 "bne L_%=_delayMicroseconds" "\n" |
75 : "+r" (n) : | 75 : "+r" (n) : |
76 ); | 76 ); |
77 } | 77 } |
78 | 78 |
79 | 79 |