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
|
@ -102,7 +102,7 @@ the ComTest tasks will be included in place of the trace task. */
|
|||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 180 ) /* This can be greatly reduced when using the small or medium memory model. */
|
||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 56000000 ) /* Clock setup from start.asm in the demo application. */
|
||||
#define configCLKP1_CLOCK_HZ ( ( unsigned long ) 56000000 ) /* Clock setup from start.asm in the demo application. */
|
||||
#define configTICK_RATE_HZ ( (portTickType) 1000 )
|
||||
#define configTICK_RATE_HZ ( (TickType_t) 1000 )
|
||||
#define configMAX_PRIORITIES ( 6 )
|
||||
#define configTOTAL_HEAP_SIZE ( (size_t) (20000) )
|
||||
#define configMAX_TASK_NAME_LEN ( 20 )
|
||||
|
|
|
@ -132,7 +132,7 @@ static void prvFlashCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE
|
|||
|
||||
/* The queue used to pass data between the 'fixed delay' co-routines and the
|
||||
'flash' co-routine. */
|
||||
static xQueueHandle xFlashQueue;
|
||||
static QueueHandle_t xFlashQueue;
|
||||
|
||||
/* This will be set to pdFALSE if we detect an error. */
|
||||
static unsigned portBASE_TYPE uxCoRoutineFlashStatus = pdPASS;
|
||||
|
@ -175,14 +175,14 @@ static as we do not need it to maintain its state between blocks. */
|
|||
signed portBASE_TYPE xResult;
|
||||
/* The uxIndex parameter of the co-routine function is used as an index into
|
||||
the xFlashRates array to obtain the delay period to use. */
|
||||
static const portTickType xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_RATE_MS,
|
||||
200 / portTICK_RATE_MS,
|
||||
250 / portTICK_RATE_MS,
|
||||
300 / portTICK_RATE_MS,
|
||||
350 / portTICK_RATE_MS,
|
||||
400 / portTICK_RATE_MS,
|
||||
450 / portTICK_RATE_MS,
|
||||
500 / portTICK_RATE_MS };
|
||||
static const TickType_t xFlashRates[ crfMAX_FLASH_TASKS ] = { 150 / portTICK_PERIOD_MS,
|
||||
200 / portTICK_PERIOD_MS,
|
||||
250 / portTICK_PERIOD_MS,
|
||||
300 / portTICK_PERIOD_MS,
|
||||
350 / portTICK_PERIOD_MS,
|
||||
400 / portTICK_PERIOD_MS,
|
||||
450 / portTICK_PERIOD_MS,
|
||||
500 / portTICK_PERIOD_MS };
|
||||
|
||||
/* Co-routines MUST start with a call to crSTART. */
|
||||
crSTART( xHandle );
|
||||
|
|
|
@ -134,8 +134,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 )
|
||||
|
||||
/* LED assignments for the demo tasks. */
|
||||
#define mainNUM_FLASH_CO_ROUTINES 8
|
||||
|
@ -224,7 +224,7 @@ static void prvSetupHardware( void )
|
|||
|
||||
static void vErrorChecks( void *pvParameters )
|
||||
{
|
||||
portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
|
||||
TickType_t xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
|
||||
|
||||
/* Just to remove compiler warnings. */
|
||||
( void ) pvParameters;
|
||||
|
|
|
@ -80,10 +80,10 @@
|
|||
#include "serial.h"
|
||||
|
||||
/* The queue used to hold received characters. */
|
||||
static xQueueHandle xRxedChars;
|
||||
static QueueHandle_t xRxedChars;
|
||||
|
||||
/* The queue used to hold characters waiting transmission. */
|
||||
static xQueueHandle xCharsForTx;
|
||||
static QueueHandle_t xCharsForTx;
|
||||
|
||||
static volatile short sTHREEmpty;
|
||||
|
||||
|
@ -129,7 +129,7 @@ xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned port
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )
|
||||
{
|
||||
/* Get the next character from the buffer. Return false if no characters
|
||||
are available, or arrive before xBlockTime expires. */
|
||||
|
@ -144,7 +144,7 @@ signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedC
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )
|
||||
{
|
||||
signed portBASE_TYPE xReturn;
|
||||
|
||||
|
|
|
@ -24,9 +24,9 @@ static void vUART0Task( void *pvParameters );
|
|||
/*********************@GLOBAL_VARIABLES_START*******************/
|
||||
const char ASCII[] = "0123456789ABCDEF";
|
||||
|
||||
xTaskHandle UART_TaskHandle;
|
||||
TaskHandle_t UART_TaskHandle;
|
||||
|
||||
static xQueueHandle xQueue;
|
||||
static QueueHandle_t xQueue;
|
||||
void InitUart0( void )
|
||||
{
|
||||
/* Initialize UART asynchronous mode */
|
||||
|
@ -184,7 +184,7 @@ static void vUART0Task( void *pvParameters )
|
|||
case '2':
|
||||
vTaskStartTrace( (signed char *) buff, sizeof( buff ) );
|
||||
Puts0( "\n\rThe trace started!!" );
|
||||
vTaskDelay( (portTickType) 500 );
|
||||
vTaskDelay( (TickType_t) 500 );
|
||||
trace_len = ulTaskEndTrace();
|
||||
Puts0( "\n\rThe trace ended!!" );
|
||||
Puts0( "\n\rThe trace is as follows...." );
|
||||
|
|
|
@ -31,8 +31,8 @@ void InitWatchdog( void )
|
|||
#if WATCHDOG == WTC_IN_TASK
|
||||
static void prvWatchdogTask( void *pvParameters )
|
||||
{
|
||||
const portTickType xFrequency = WTC_CLR_PER;
|
||||
portTickType xLastWakeTime;
|
||||
const TickType_t xFrequency = WTC_CLR_PER;
|
||||
TickType_t xLastWakeTime;
|
||||
( void ) pvParameters;
|
||||
|
||||
/* Get currrent tick count */
|
||||
|
@ -58,7 +58,7 @@ static void prvWatchdogTask( void *pvParameters )
|
|||
#if WATCHDOG == WTC_IN_TASK
|
||||
void vStartWatchdogTask( unsigned portBASE_TYPE uxPriority )
|
||||
{
|
||||
xTaskCreate( prvWatchdogTask, "KickWTC", portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );
|
||||
xTaskCreate( prvWatchdogTask, "KickWTC", portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( TaskHandle_t * ) NULL );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue