summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c')
-rw-r--r--FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c b/FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c
index 6db3434ce..b630e7fd8 100644
--- a/FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c
+++ b/FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c
@@ -127,20 +127,20 @@
/* The period after which the check timer will expire provided no errors have
been reported by any of the standard demo tasks. ms are converted to the
-equivalent in ticks using the portTICK_RATE_MS constant. */
-#define mainCHECK_TIMER_PERIOD_MS ( 3000UL / portTICK_RATE_MS )
+equivalent in ticks using the portTICK_PERIOD_MS constant. */
+#define mainCHECK_TIMER_PERIOD_MS ( 3000UL / portTICK_PERIOD_MS )
/* The period at which the check timer will expire if an error has been
reported in one of the standard demo tasks. ms are converted to the equivalent
-in ticks using the portTICK_RATE_MS constant. */
-#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_RATE_MS )
+in ticks using the portTICK_PERIOD_MS constant. */
+#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_PERIOD_MS )
/* A block time of zero simply means "don't block". */
#define mainDONT_BLOCK ( 0UL )
/* The base toggle rate used by the flash timers. Each toggle rate is a
multiple of this. */
-#define mainFLASH_TIMER_BASE_RATE ( 200UL / portTICK_RATE_MS )
+#define mainFLASH_TIMER_BASE_RATE ( 200UL / portTICK_PERIOD_MS )
/* The LED toggle by the check timer. */
#define mainCHECK_LED ( 3 )
@@ -161,13 +161,13 @@ extern void vMainToggleLED( void );
/*
* The check timer callback function, as described at the top of this file.
*/
-static void prvCheckTimerCallback( xTimerHandle xTimer );
+static void prvCheckTimerCallback( TimerHandle_t xTimer );
/*
* The flash timer callback function, as described at the top of this file.
* This callback function is assigned to three separate software timers.
*/
-static void prvFlashTimerCallback( xTimerHandle xTimer );
+static void prvFlashTimerCallback( TimerHandle_t xTimer );
/*
* Called by main() to create the comprehensive test/demo application if
@@ -187,7 +187,7 @@ volatile unsigned long ulRegTest1LoopCounter = 0UL, ulRegTest2LoopCounter = 0UL;
void main_full( void )
{
-xTimerHandle xTimer = NULL;
+TimerHandle_t xTimer = NULL;
unsigned long ulTimer;
const unsigned long ulTimersToCreate = 3L;
/* The register test tasks are asm functions that don't use a stack. The
@@ -266,7 +266,7 @@ const size_t xRegTestStackSize = 25U;
/*-----------------------------------------------------------*/
/* See the description at the top of this file. */
-static void prvCheckTimerCallback( xTimerHandle xTimer )
+static void prvCheckTimerCallback( TimerHandle_t xTimer )
{
static long lChangedTimerPeriodAlready = pdFALSE;
static unsigned long ulLastRegTest1Value = 0, ulLastRegTest2Value = 0;
@@ -332,7 +332,7 @@ unsigned long ulErrorFound = pdFALSE;
}
/*-----------------------------------------------------------*/
-static void prvFlashTimerCallback( xTimerHandle xTimer )
+static void prvFlashTimerCallback( TimerHandle_t xTimer )
{
unsigned long ulLED;