mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -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
|
@ -63,7 +63,7 @@
|
|||
#define configUSE_TICK_HOOK 0
|
||||
#define configCPU_CLOCK_HZ ( FOSC0 ) /* Hz clk gen */
|
||||
#define configPBA_CLOCK_HZ ( FOSC0 )
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#define configMAX_PRIORITIES ( 8 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
|
||||
/* configTOTAL_HEAP_SIZE is not used when heap_3.c is used. */
|
||||
|
|
|
@ -148,11 +148,11 @@
|
|||
#define mainERROR_LED ( 7 )
|
||||
|
||||
//! The period between executions of the check task.
|
||||
#define mainCHECK_PERIOD ( ( portTickType ) 3000 / portTICK_RATE_MS )
|
||||
#define mainCHECK_PERIOD ( ( TickType_t ) 3000 / portTICK_PERIOD_MS )
|
||||
|
||||
//! If an error is detected in a task, the vErrorChecks task will enter in an
|
||||
//! infinite loop flashing the LED at this rate.
|
||||
#define mainERROR_FLASH_RATE ( (portTickType) 500 / portTICK_RATE_MS )
|
||||
#define mainERROR_FLASH_RATE ( (TickType_t) 500 / portTICK_PERIOD_MS )
|
||||
|
||||
/*! \name Constants used by the vMemCheckTask() task.
|
||||
*/
|
||||
|
@ -246,7 +246,7 @@ static void vErrorChecks( void *pvParameters )
|
|||
{
|
||||
static volatile unsigned long ulDummyVariable = 3UL;
|
||||
unsigned long ulMemCheckTaskRunningCount;
|
||||
xTaskHandle xCreatedTask;
|
||||
TaskHandle_t xCreatedTask;
|
||||
portBASE_TYPE bSuicidalTask = 0;
|
||||
|
||||
/* The parameters are not used. Prevent compiler warnings. */
|
||||
|
|
|
@ -59,23 +59,23 @@
|
|||
|
||||
/* Constants to setup and access the USART. */
|
||||
#define serINVALID_COMPORT_HANDLER ( ( xComPortHandle ) 0 )
|
||||
#define serINVALID_QUEUE ( ( xQueueHandle ) 0 )
|
||||
#define serINVALID_QUEUE ( ( QueueHandle_t ) 0 )
|
||||
#define serHANDLE ( ( xComPortHandle ) 1 )
|
||||
#define serNO_BLOCK ( ( portTickType ) 0 )
|
||||
#define serNO_BLOCK ( ( TickType_t ) 0 )
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Queues used to hold received characters, and characters waiting to be
|
||||
transmitted. */
|
||||
static xQueueHandle xRxedChars;
|
||||
static xQueueHandle xCharsForTx;
|
||||
static QueueHandle_t xRxedChars;
|
||||
static QueueHandle_t xCharsForTx;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Forward declaration. */
|
||||
static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength,
|
||||
xQueueHandle *pxRxedChars,
|
||||
xQueueHandle *pxCharsForTx );
|
||||
QueueHandle_t *pxRxedChars,
|
||||
QueueHandle_t *pxCharsForTx );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -290,7 +290,7 @@ int cd; /* USART Clock Divider. */
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )
|
||||
{
|
||||
/* The port handle is not required as this driver only supports UART0. */
|
||||
( void ) pxPort;
|
||||
|
@ -328,7 +328,7 @@ signed char *pxNext;
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )
|
||||
{
|
||||
volatile avr32_usart_t *usart = serialPORT_USART;
|
||||
|
||||
|
@ -359,7 +359,7 @@ void vSerialClose( xComPortHandle xPort )
|
|||
/*
|
||||
* Create the rx and tx queues.
|
||||
*/
|
||||
static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength, xQueueHandle *pxRxedChars, xQueueHandle *pxCharsForTx )
|
||||
static void vprvSerialCreateQueues( unsigned portBASE_TYPE uxQueueLength, QueueHandle_t *pxRxedChars, QueueHandle_t *pxCharsForTx )
|
||||
{
|
||||
/* Create the queues used to hold Rx and Tx characters. */
|
||||
xRxedChars = xQueueCreate( uxQueueLength, ( unsigned portBASE_TYPE ) sizeof( signed char ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue