Update the demo directory to use the version 8 type naming conventions.

This commit is contained in:
Richard Barry 2014-02-11 12:04:59 +00:00
parent c6d8892b0d
commit 5a2a8fc319
639 changed files with 3127 additions and 3470 deletions

View file

@ -82,7 +82,7 @@
#define configUSE_IDLE_HOOK 1
#define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( 14000000UL )
#define configTICK_RATE_HZ ( ( portTickType ) 100 )
#define configTICK_RATE_HZ ( ( TickType_t ) 100 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 10 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 10 )

View file

@ -535,7 +535,7 @@ void LCD_ScrollText(LCD_TypeDef *lcd, char *scrolltext)
{
memcpy(buffer, scrolltext + i, 7);
LCD_Write(lcd, buffer);
vTaskDelay(100/portTICK_RATE_MS);
vTaskDelay(100/portTICK_PERIOD_MS);
}
}

View file

@ -70,9 +70,9 @@
/* Demo includes. */
#include "lcdtest.h"
#define lcdSHORT_DELAY ( 60 / portTICK_RATE_MS )
#define lcdQUARTER_SECOND ( 250 / portTICK_RATE_MS )
#define lcdONE_SECOND ( 1000 / portTICK_RATE_MS )
#define lcdSHORT_DELAY ( 60 / portTICK_PERIOD_MS )
#define lcdQUARTER_SECOND ( 250 / portTICK_PERIOD_MS )
#define lcdONE_SECOND ( 1000 / portTICK_PERIOD_MS )
void vLCDTask( void *pvParameters )
{

View file

@ -70,7 +70,7 @@
/* Demo app includes. */
#include "ledtest.h"
#define lLEDOnE_SECOND ( 1000UL / portTICK_RATE_MS )
#define lLEDOnE_SECOND ( 1000UL / portTICK_PERIOD_MS )
void vLEDTask( void *pvParameters )
{

View file

@ -122,12 +122,12 @@
#define mainCHECK_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 )
/* A period of two seconds, adjusted to use the tick frequency. */
#define mainTWO_SECONDS ( 2000 / portTICK_RATE_MS )
#define mainTWO_SECONDS ( 2000 / portTICK_PERIOD_MS )
/* The length of the delay between each cycle of the check task when an error
has / has not been detected. */
#define mainNO_ERROR_CHECK_FREQUENCY ( 5000 / portTICK_RATE_MS )
#define mainERROR_CHECK_FREQUENCY ( 200 / portTICK_RATE_MS )
#define mainNO_ERROR_CHECK_FREQUENCY ( 5000 / portTICK_PERIOD_MS )
#define mainERROR_CHECK_FREQUENCY ( 200 / portTICK_PERIOD_MS )
/* The LED that is toggled by the check task. The rate of the toggle indicates
whether or not an error has been found, as defined by the
@ -194,7 +194,7 @@ void vApplicationIdleHook( void )
}
/*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
{
/* This function will be called if a task overflows its stack, if
configCHECK_FOR_STACK_OVERFLOW != 0. It might be that the function
@ -207,7 +207,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
static void prvCheckTask( void *pvParameters )
{
portTickType xLastExecutionTime, xFrequency = mainNO_ERROR_CHECK_FREQUENCY;
TickType_t xLastExecutionTime, xFrequency = mainNO_ERROR_CHECK_FREQUENCY;
long lCount;
/* Initialise xLastExecutionTime so the first call to vTaskDelayUntil()