api-hal-task.h 398 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "main.h"
  3. #include <cmsis_os.h>
  4. #include <stdbool.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. // Task stack size in bytes
  9. #define DEFAULT_STACK_SIZE 4096
  10. // Max system tasks count
  11. #define MAX_TASK_COUNT 10
  12. bool task_equal(TaskHandle_t a, TaskHandle_t b);
  13. bool task_is_isr_context(void);
  14. __attribute__((unused)) void taskDISABLE_INTERRUPTS(void);
  15. #ifdef __cplusplus
  16. }
  17. #endif