]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M7_M4_AMP_STM32H745I_Discovery_IAR/CM4/main.c
Removing obsolete code and files only.
[freertos] / FreeRTOS / Demo / CORTEX_M7_M4_AMP_STM32H745I_Discovery_IAR / CM4 / main.c
index 24e490ff9eff8565055a6c996a9336478969eb55..5c33edfbead5284455316f8ed42c090c2141ce45 100644 (file)
@@ -264,7 +264,7 @@ uint32_t ulNextValue = 0;
 char cExpectedString[ 15 ];\r
 char cReceivedString[ 15 ];\r
 char cMessage;\r
-const TickType_t xShortBlockTime = pdMS_TO_TICKS( 5 );\r
+const TickType_t xShortBlockTime = pdMS_TO_TICKS( 150 );\r
 \r
        /* This task is created more than once so the task's parameter is used to\r
        pass in a task number, which is then used as an index into the message\r
@@ -332,28 +332,9 @@ const TickType_t xShortBlockTime = pdMS_TO_TICKS( 5 );
 \r
 void vGenerateM4ToM7Interrupt( void * xUpdatedMessageBuffer )\r
 {\r
-MessageBufferHandle_t xUpdatedBuffer = ( MessageBufferHandle_t ) xUpdatedMessageBuffer;\r
-const char cMessage[] = "\r\nvGenerateM4ToM7Interrupt\r\n";\r
-\r
        /* Called by the implementation of sbRECEIVE_COMPLETED() in FreeRTOSConfig.h.\r
        See the comments at the top of this file.  Write the handle of the data\r
        message buffer to which data was written to the control message buffer. */\r
-#if 0\r
-       if( xUpdatedBuffer != xControlMessageBuffer )\r
-       {\r
-               while( xMessageBufferSend( xControlMessageBuffer, &xUpdatedBuffer, sizeof( xUpdatedBuffer ), mbaDONT_BLOCK ) != sizeof( xUpdatedBuffer ) )\r
-               {\r
-                       /* Nothing to do here.  Note it is very bad to loop in an interrupt\r
-                       service routine.  If a loop is really required then defer the\r
-                       routine to a task. */\r
-               }\r
-\r
-               /* Generate interrupt in the M4 core. */\r
-               HAL_EXTI_D1_EventInputConfig( EXTI_LINE0, EXTI_MODE_IT, DISABLE );\r
-               HAL_EXTI_D2_EventInputConfig( EXTI_LINE0, EXTI_MODE_IT, ENABLE );\r
-               HAL_EXTI_GenerateSWInterrupt( EXTI_LINE0 );\r
-       }\r
-#endif\r
 \r
        /* Generate interrupt in the M7 core. */\r
        HAL_EXTI_D2_EventInputConfig( EXTI_LINE1, EXTI_MODE_IT, DISABLE );\r