|
|
@@ -115,7 +115,7 @@ const osThreadAttr_t taskEPS_attributes = {
|
|
|
.stack_size = sizeof(taskEPSBuffer),
|
|
|
.cb_mem = &taskEPSControlBlock,
|
|
|
.cb_size = sizeof(taskEPSControlBlock),
|
|
|
- .priority = (osPriority_t) osPriorityNormal,
|
|
|
+ .priority = (osPriority_t) osPriorityRealtime,
|
|
|
};
|
|
|
/* Definitions for taskSnap */
|
|
|
osThreadId_t taskSnapHandle;
|
|
|
@@ -168,6 +168,7 @@ void taskEPSRunner(void *argument);
|
|
|
void taskSnapRunner(void *argument);
|
|
|
void taskAIRunner(void *argument);
|
|
|
void taskImcTest(void *argument);
|
|
|
+void taskImcTest_2(void *argument);
|
|
|
|
|
|
/* USER CODE BEGIN PFP */
|
|
|
/* USER CODE END PFP */
|
|
|
@@ -300,6 +301,7 @@ int main(void)
|
|
|
#if (imcUSE_IMC_KERNEL == 1)
|
|
|
// taskSnapHandle = imcOsThreadNew(taskSnapRunner, NULL, &taskSnap_attributes);
|
|
|
taskSnapHandle = imcOsThreadNew(taskImcTest, NULL, &taskSnap_attributes);
|
|
|
+ taskEPSHandle = imcOsThreadNew(taskImcTest_2, NULL, &taskEPS_attributes);
|
|
|
#else
|
|
|
// taskSnapHandle = osThreadNew(taskSnapRunner, NULL, &taskSnap_attributes);
|
|
|
#endif
|
|
|
@@ -1553,15 +1555,28 @@ void taskAIRunner(void *argument)
|
|
|
void taskImcTest(void *argument) {
|
|
|
int i = 0;
|
|
|
while(1) {
|
|
|
- for(int j=0; j<100000000; j++) {
|
|
|
+ for(int j=0; j<10000000; j++) {
|
|
|
__asm(" nop");
|
|
|
}
|
|
|
- osDelay(1000000);
|
|
|
printf("i=%d\r\n", i++);
|
|
|
imcREQUEST_CHECKPOINT();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void taskImcTest_2(void *argument)
|
|
|
+{
|
|
|
+ int i = 0;
|
|
|
+ while (1)
|
|
|
+ {
|
|
|
+ for (int j = 0; j < 5000000; j++)
|
|
|
+ {
|
|
|
+ __asm(" nop");
|
|
|
+ }
|
|
|
+ printf("\tj=%d\r\n", i++);
|
|
|
+ imcREQUEST_CHECKPOINT();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* @brief Period elapsed callback in non blocking mode
|
|
|
* @note This function is called when TIM2 interrupt took place, inside
|