summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/msp430_IAR/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/msp430_IAR/main.c')
-rw-r--r--FreeRTOS/Demo/msp430_IAR/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FreeRTOS/Demo/msp430_IAR/main.c b/FreeRTOS/Demo/msp430_IAR/main.c
index 0fa135b31..e21553b56 100644
--- a/FreeRTOS/Demo/msp430_IAR/main.c
+++ b/FreeRTOS/Demo/msp430_IAR/main.c
@@ -126,8 +126,8 @@ top of the page. When the system is operating error free the 'Check' task
toggles an LED every three seconds. If an error is discovered in any task the
rate is increased to 500 milliseconds. [in this case the '*' characters on the
LCD represent LED's]*/
-#define mainNO_ERROR_CHECK_DELAY ( ( portTickType ) 3000 / portTICK_RATE_MS )
-#define mainERROR_CHECK_DELAY ( ( portTickType ) 500 / portTICK_RATE_MS )
+#define mainNO_ERROR_CHECK_DELAY ( ( TickType_t ) 3000 / portTICK_PERIOD_MS )
+#define mainERROR_CHECK_DELAY ( ( TickType_t ) 500 / portTICK_PERIOD_MS )
/* The constants used in the calculation. */
#define intgCONST1 ( ( long ) 123 )
@@ -189,7 +189,7 @@ int main( void )
static portTASK_FUNCTION( vErrorChecks, pvParameters )
{
-portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
+TickType_t xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
/* Cycle for ever, delaying then checking all the other tasks are still
operating without error. */