Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 758 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 758 Bytes

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