2020-10-29 06:27:17 +00:00
|
|
|
#pragma once
|
|
|
|
#include "main.h"
|
2020-10-29 07:58:19 +00:00
|
|
|
#include <cmsis_os.h>
|
2020-10-29 06:27:17 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-12-02 10:47:13 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-11-14 16:24:38 +00:00
|
|
|
// Task stack size in bytes
|
|
|
|
#define DEFAULT_STACK_SIZE 4096
|
|
|
|
|
|
|
|
// Max system tasks count
|
|
|
|
#define MAX_TASK_COUNT 10
|
|
|
|
|
2020-10-29 07:58:19 +00:00
|
|
|
bool task_equal(TaskHandle_t a, TaskHandle_t b);
|
|
|
|
bool task_is_isr_context(void);
|
|
|
|
__attribute__((unused)) void taskDISABLE_INTERRUPTS(void);
|
2020-12-02 10:47:13 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|