X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fmtask.c;fp=bertos%2Fkern%2Fmtask.c;h=ee51e8381aee573f196d06ecef14dc8b08124f46;hb=32d1445272120a254d77ce8d1af1f527da7a2c17;hp=0000000000000000000000000000000000000000;hpb=fe0a14d1434098bfd0780d06a2a7e55f27940d27;p=bertos.git diff --git a/bertos/kern/mtask.c b/bertos/kern/mtask.c new file mode 100644 index 00000000..ee51e838 --- /dev/null +++ b/bertos/kern/mtask.c @@ -0,0 +1,50 @@ +/** + * \file + * + * + * \brief Choose the multitasking scheduler. + * + * \author Francesco Sacchi + */ + + +#include "cfg/cfg_proc.h" + +/* + * Choose which file to compile depending on + * the multitasking type. + */ +#if CONFIG_KERN_PREEMPT + #include "preempt.c" +#else + #include "coop.c" +#endif +