Adjust cc2x3x ports to the new clock API
This commit is contained in:
parent
efd6d12831
commit
1f7171f943
11 changed files with 39 additions and 29 deletions
|
@ -59,11 +59,11 @@ static volatile __data clock_time_t seconds = 0; /* Uptime in secs */
|
|||
* Each iteration is ~1.0xy usec, so this function delays for roughly len usec
|
||||
*/
|
||||
void
|
||||
clock_delay(unsigned int len)
|
||||
clock_delay_usec(uint16_t len)
|
||||
{
|
||||
DISABLE_INTERRUPTS();
|
||||
while(len--) {
|
||||
ASM(nop); ASM(nop); ASM(nop);
|
||||
ASM(nop); ASM(nop);
|
||||
ASM(nop); ASM(nop);
|
||||
}
|
||||
ENABLE_INTERRUPTS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue