Skip to content

Commit b0c68cb

Browse files
Fix slow AF test (I thought it was hung!)
1 parent 795984c commit b0c68cb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/arm-cmsis-rtos-validator/Source/Config/RTE_Components.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// #define RTE_RV_GENWAIT /* RTOS Validation - GenWait test enabled */
1818
// #define RTE_RV_MAILQUEUE /* RTOS Validation - MailQueue test enabled */
1919
#define RTE_RV_MEMORYPOOL /* RTOS Validation - MemoryPool test enabled */
20-
//#define RTE_RV_MSGQUEUE /* RTOS Validation - MsgQueue test enabled */
20+
#define RTE_RV_MSGQUEUE /* RTOS Validation - MsgQueue test enabled */
2121
#define RTE_RV_MUTEX /* RTOS Validation - Mutex test enabled */
2222
#define RTE_RV_SEMAPHORE /* RTOS Validation - Semaphore test enabled */
2323
#define RTE_RV_SIGNAL /* RTOS Validation - Signal test enabled */

tests/arm-cmsis-rtos-validator/Source/RV_MsgQueue.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ osEvent MsgQEv_Isr;
5050
#define MSG_THREAD_TO_ISR_PERIOD 2 /* Interrupt period in miliseconds */
5151
// [ILG]
5252
#if defined(DEBUG)
53-
#define MSG_THREAD_TO_ISR_TIMEOUT 500 /* Timeout in ms -> 1sec @ 2ms */
53+
#define MSG_THREAD_TO_ISR_TIMEOUT 50 /* Timeout in ms -> .1sec @ 2ms */
5454
#else
55-
#define MSG_THREAD_TO_ISR_TIMEOUT 2500 /* Timeout in ms -> 5sec @ 2ms */
55+
#define MSG_THREAD_TO_ISR_TIMEOUT 250 /* Timeout in ms -> .5sec @ 2ms */
5656
#endif
5757

5858
static void Isr_MsgReceive (void);
@@ -62,9 +62,9 @@ static void Isr_MsgReceive (void);
6262
#define MSG_ISR_TO_THREAD_PERIOD 2 /* Interrupt period in miliseconds */
6363
// [ILG]
6464
#if defined(DEBUG)
65-
#define MSG_ISR_TO_THREAD_TIMEOUT 500 /* Timeout in ms -> 1sec @ 2ms */
65+
#define MSG_ISR_TO_THREAD_TIMEOUT 50 /* Timeout in ms -> .1sec @ 2ms */
6666
#else
67-
#define MSG_ISR_TO_THREAD_TIMEOUT 2500 /* Timeout in ms -> 5sec @ 2ms */
67+
#define MSG_ISR_TO_THREAD_TIMEOUT 250 /* Timeout in ms -> .5sec @ 2ms */
6868
#endif
6969

7070
static void Isr_MsgSend (void);

0 commit comments

Comments
 (0)