Loading...
Searching...
No Matches
sched_round_robin.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 TUBA Freiberg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#if !defined(SCHED_RR_TIMEOUT) || defined(DOXYGEN)
42#if MODULE_ZTIMER_MSEC
43#define SCHED_RR_TIMEOUT 10
44#else
45#define SCHED_RR_TIMEOUT 10000
46#endif
47#endif
48
49#if !defined(SCHED_RR_TIMERBASE) || defined(DOXYGEN)
55#if MODULE_ZTIMER_MSEC
56#define SCHED_RR_TIMERBASE ZTIMER_MSEC
57#else
58#define SCHED_RR_TIMERBASE ZTIMER_USEC
59#endif
60#endif
61
62#if !defined(SCHED_RR_MASK) || defined(DOXYGEN)
71#define SCHED_RR_MASK (1 << 0)
72#endif
73
78
79#ifdef __cplusplus
80}
81#endif
82
void sched_round_robin_init(void)
Initialises the Round Robin Scheduler.