imc_kernel.h 529 B

1234567891011121314151617181920212223242526
  1. #ifndef INC_IMC_IMC_KERNEL_H_
  2. #define INC_IMC_IMC_KERNEL_H_
  3. #define imcUSE_IMC_KERNEL 1
  4. #define imcSTM32_CUBE_IDE 0
  5. #define imcMAX_NUM_TASKS 5
  6. #define imcSTACK_SIZE (1024)
  7. #define IMC_GLOBAL __attribute__((section(".imc_global")))
  8. #define portSVC_IMC_REQUEST_CHECKPOINT 6
  9. #define imcREQUEST_CHECKPOINT() \
  10. { \
  11. __asm(" svc #6"); \
  12. }
  13. #include "cmsis_os.h"
  14. void imcInit();
  15. osThreadId_t imcOsThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr);
  16. #endif