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
|
@ -85,7 +85,7 @@
|
|||
#define configUSE_IDLE_HOOK 0
|
||||
#define configUSE_TICK_HOOK 0
|
||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 60000000 ) /* Timer clock. */
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#define configMAX_PRIORITIES ( 5 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 100 )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) 12800 )
|
||||
|
|
|
@ -168,7 +168,7 @@ static void vPrintTask( void *pvParameters );
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* The queue used to communicate with the LCD print task. */
|
||||
static xQueueHandle xLCDQueue;
|
||||
static QueueHandle_t xLCDQueue;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -206,7 +206,7 @@ int main( void )
|
|||
static void vCheckTask( void *pvParameters )
|
||||
{
|
||||
static unsigned long ulErrorDetected = pdFALSE;
|
||||
portTickType xLastExecutionTime;
|
||||
TickType_t xLastExecutionTime;
|
||||
unsigned char *ucErrorMessage = ( unsigned char * )" FAIL";
|
||||
unsigned char *ucSuccessMessage = ( unsigned char * )" PASS";
|
||||
unsigned portBASE_TYPE uxColumn = mainMAX_WRITE_COLUMN;
|
||||
|
|
|
@ -89,15 +89,15 @@
|
|||
/* Demo application includes. */
|
||||
#include "serial.h"
|
||||
|
||||
#define serINVALID_QUEUE ( ( xQueueHandle ) 0 )
|
||||
#define serNO_BLOCK ( ( portTickType ) 0 )
|
||||
#define serINVALID_QUEUE ( ( QueueHandle_t ) 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;
|
||||
|
||||
static volatile portBASE_TYPE xQueueEmpty = pdTRUE;
|
||||
|
||||
|
@ -105,7 +105,7 @@ static volatile portBASE_TYPE xQueueEmpty = pdTRUE;
|
|||
|
||||
/* The interrupt service routine - called from the assembly entry point. */
|
||||
void vSerialISR( void );
|
||||
void vConfigureQueues( xQueueHandle xQForRx, xQueueHandle xQForTx, volatile portBASE_TYPE *pxEmptyFlag );
|
||||
void vConfigureQueues( QueueHandle_t xQForRx, QueueHandle_t xQForTx, volatile portBASE_TYPE *pxEmptyFlag );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -181,7 +181,7 @@ EIC_IRQInitTypeDef EIC_IRQInitStructure;
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
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 one port. */
|
||||
( void ) pxPort;
|
||||
|
@ -223,7 +223,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 )
|
||||
{
|
||||
portBASE_TYPE xReturn;
|
||||
|
||||
|
|
|
@ -78,11 +78,11 @@
|
|||
#include "FreeRTOS.h"
|
||||
#include "queue.h"
|
||||
|
||||
static xQueueHandle xRxedChars;
|
||||
static xQueueHandle xCharsForTx;
|
||||
static QueueHandle_t xRxedChars;
|
||||
static QueueHandle_t xCharsForTx;
|
||||
static portBASE_TYPE volatile *pxQueueEmpty;
|
||||
|
||||
void vConfigureQueues( xQueueHandle xQForRx, xQueueHandle xQForTx, portBASE_TYPE volatile *pxEmptyFlag )
|
||||
void vConfigureQueues( QueueHandle_t xQForRx, QueueHandle_t xQForTx, portBASE_TYPE volatile *pxEmptyFlag )
|
||||
{
|
||||
xRxedChars = xQForRx;
|
||||
xCharsForTx = xQForTx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue