From ff5d3512b34672656546f9ab367da98c782b23a6 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Fri, 29 Aug 2014 13:53:58 +0000 Subject: Core kernel code: - Re-introduce the ability to give a mutex from an ISR. Common demo code: - Add additional tests into the GenQTest files for priority inheritance and using a mutex from an ISR. --- FreeRTOS/Source/include/projdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FreeRTOS/Source/include/projdefs.h') diff --git a/FreeRTOS/Source/include/projdefs.h b/FreeRTOS/Source/include/projdefs.h index f7b9a0e3e..22c810b40 100644 --- a/FreeRTOS/Source/include/projdefs.h +++ b/FreeRTOS/Source/include/projdefs.h @@ -73,7 +73,7 @@ typedef void (*TaskFunction_t)( void * ); /* Converts a time in milliseconds to a time in ticks. */ -#define pdMS_TO_TICKS( xTimeInMs ) ( ( ( TickType_t ) xTimeInMs * configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) +#define pdMS_TO_TICKS( xTimeInMs ) ( ( ( TickType_t ) ( xTimeInMs ) * configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) #define pdFALSE ( ( BaseType_t ) 0 ) #define pdTRUE ( ( BaseType_t ) 1 ) -- cgit v1.2.1