mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Update the demo directory to use the version 8 type naming conventions.
This commit is contained in:
parent
c6d8892b0d
commit
5a2a8fc319
639 changed files with 3127 additions and 3470 deletions
|
@ -96,7 +96,7 @@
|
|||
/* In this case configCPU_CLOCK_HZ is actually set to the pclk frequency, not
|
||||
the CPU frequency. */
|
||||
#define configCPU_CLOCK_HZ ( 58982400UL ) /* =14.7456MHz xtal multiplied by 4 using the PLL. */
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#define configMAX_PRIORITIES ( 6 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 18 * 1024 ) )
|
||||
|
|
|
@ -125,12 +125,12 @@
|
|||
|
||||
/* Demo application definitions. */
|
||||
#define mainQUEUE_SIZE ( 3 )
|
||||
#define mainLED_DELAY ( ( portTickType ) 500 / portTICK_RATE_MS )
|
||||
#define mainERROR_LED_DELAY ( ( portTickType ) 50 / portTICK_RATE_MS )
|
||||
#define mainCHECK_DELAY ( ( portTickType ) 5000 / portTICK_RATE_MS )
|
||||
#define mainLED_DELAY ( ( TickType_t ) 500 / portTICK_PERIOD_MS )
|
||||
#define mainERROR_LED_DELAY ( ( TickType_t ) 50 / portTICK_PERIOD_MS )
|
||||
#define mainCHECK_DELAY ( ( TickType_t ) 5000 / portTICK_PERIOD_MS )
|
||||
#define mainLIST_BUFFER_SIZE 2048
|
||||
#define mainNO_DELAY ( 0 )
|
||||
#define mainSHORT_DELAY ( 150 / portTICK_RATE_MS )
|
||||
#define mainSHORT_DELAY ( 150 / portTICK_PERIOD_MS )
|
||||
|
||||
/* Task priorities. */
|
||||
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
|
@ -144,15 +144,15 @@
|
|||
|
||||
/* The semaphore used to wake the button task from within the external interrupt
|
||||
handler. */
|
||||
xSemaphoreHandle xButtonSemaphore;
|
||||
SemaphoreHandle_t xButtonSemaphore;
|
||||
|
||||
/* The queue that is used to send message to vPrintTask for display in the
|
||||
terminal output window. */
|
||||
xQueueHandle xPrintQueue;
|
||||
QueueHandle_t xPrintQueue;
|
||||
|
||||
/* The rate at which the LED will toggle. The toggle rate increases if an
|
||||
error is detected in any task. */
|
||||
static portTickType xLED_Delay = mainLED_DELAY;
|
||||
static TickType_t xLED_Delay = mainLED_DELAY;
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
|
@ -261,7 +261,7 @@ static void vLEDTask( void *pvParameters )
|
|||
static void vCheckTask( void *pvParameters )
|
||||
{
|
||||
portBASE_TYPE xErrorOccurred = pdFALSE;
|
||||
portTickType xLastExecutionTime;
|
||||
TickType_t xLastExecutionTime;
|
||||
const char * const pcPassMessage = "PASS\n";
|
||||
const char * const pcFailMessage = "FAIL\n";
|
||||
|
||||
|
@ -402,7 +402,7 @@ extern void (vButtonISRWrapper) ( void );
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
|
||||
{
|
||||
/* Check pcTaskName for the name of the offending task, or pxCurrentTCB
|
||||
if pcTaskName has itself been corrupted. */
|
||||
|
|
|
@ -79,7 +79,7 @@ void vButtonHandler( void ) __attribute__ ((noinline));
|
|||
|
||||
void vButtonHandler( void )
|
||||
{
|
||||
extern xSemaphoreHandle xButtonSemaphore;
|
||||
extern SemaphoreHandle_t xButtonSemaphore;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
xSemaphoreGiveFromISR( xButtonSemaphore, &xHigherPriorityTaskWoken );
|
||||
|
|
|
@ -49,7 +49,7 @@ function add_list(list, state)
|
|||
|
||||
for (i = 0; i < list.uxNumberOfItems; i++)
|
||||
{
|
||||
item = Debug.evaluate("*(xListItem *)" + index);
|
||||
item = Debug.evaluate("*(ListItem_t *)" + index);
|
||||
|
||||
task = item ? item.pvOwner : 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue