/* Value that can be assigned to the eNotifyState member of the TCB. */\r
typedef enum\r
{\r
- eNotWaitingNotification,\r
+ eNotWaitingNotification = 0,\r
eWaitingNotification,\r
eNotified\r
} eNotifyValue;\r
/* Mark this task as waiting for a notification. */\r
pxCurrentTCB->eNotifyState = eWaitingNotification;\r
\r
- if( xTicksToWait > 0 )\r
+ if( xTicksToWait > ( TickType_t ) 0 )\r
{\r
/* The task is going to block. First it must be removed\r
from the ready list. */\r
{\r
ulReturn = pxCurrentTCB->ulNotifiedValue;\r
\r
- if( ulReturn != 0 )\r
+ if( ulReturn != 0UL )\r
{\r
if( xClearCountOnExit != pdFALSE )\r
{\r
\r
#if( configUSE_TASK_NOTIFICATIONS == 1 )\r
\r
- BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, BaseType_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )\r
+ BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )\r
{\r
TickType_t xTimeToWake;\r
BaseType_t xReturn;\r
/* Mark this task as waiting for a notification. */\r
pxCurrentTCB->eNotifyState = eWaitingNotification;\r
\r
- if( xTicksToWait > 0 )\r
+ if( xTicksToWait > ( TickType_t ) 0 )\r
{\r
/* The task is going to block. First it must be removed\r
from the ready list. */\r
}\r
break;\r
\r
- default :\r
+ case eNoAction:\r
/* The task is being notified without its notify value being\r
updated. */\r
break;\r
}\r
break;\r
\r
- default :\r
+ case eNoAction :\r
/* The task is being notified without its notify value being\r
updated. */\r
break;\r
\r
#if( configUSE_TASK_NOTIFICATIONS == 1 )\r
\r
- BaseType_t xTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken )\r
+ void vTaskNotifyGiveFromISR( TaskHandle_t xTaskToNotify, BaseType_t *pxHigherPriorityTaskWoken )\r
{\r
TCB_t * pxTCB;\r
eNotifyValue eOriginalNotifyState;\r
- BaseType_t xReturn = pdPASS;\r
UBaseType_t uxSavedInterruptStatus;\r
\r
configASSERT( xTaskToNotify );\r
}\r
}\r
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );\r
-\r
- return xReturn;\r
}\r
\r
#endif /* configUSE_TASK_NOTIFICATIONS */\r