Skip to content

Latest commit

 

History

History
 
 

task-04

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

previous task

Task 4: Timers

xtimer is the high level API of RIOT to multiplex hardware timers. For this task we need only the following functions

- `xtimer_now()` to get current system time in microseconds
- `xtimer_sleep(sec)` to sleep `sec` seconds
- `xtimer_usleep(usec)` to sleep `usec` microseconds

Task 4.1: Use xtimer

  • Note the inclusion of xtimer in the Makefile
USEMODULE += xtimer
  • Create a thread in main.c that prints the current system time every 2 seconds
  • Check the existence of the thread with ps shell command

Read the doc

next task