mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Replace portLONG with long, portCHAR with char, and portSHORT with short.
This commit is contained in:
parent
85096f6159
commit
876caa2967
4 changed files with 25 additions and 25 deletions
|
@ -78,12 +78,12 @@ static void prvSetupLCD( void );
|
|||
/*
|
||||
* Move to the first (0) or second (1) row of the LCD.
|
||||
*/
|
||||
static void prvLCDGotoRow( unsigned portSHORT usRow );
|
||||
static void prvLCDGotoRow( unsigned short usRow );
|
||||
|
||||
/*
|
||||
* Write a string of text to the LCD.
|
||||
*/
|
||||
static void prvLCDPutString( portCHAR *pcString );
|
||||
static void prvLCDPutString( char *pcString );
|
||||
|
||||
/*
|
||||
* Clear the LCD.
|
||||
|
@ -121,8 +121,8 @@ static void prvLCDClear( void );
|
|||
xQueueHandle xLCDQueue;
|
||||
|
||||
/* LCD access functions. */
|
||||
static void prvLCDCommand( portCHAR cCommand );
|
||||
static void prvLCDData( portCHAR cChar );
|
||||
static void prvLCDCommand( char cCommand );
|
||||
static void prvLCDData( char cChar );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -134,13 +134,13 @@ xQueueHandle xStartLCDTask( void )
|
|||
|
||||
/* Start the task that will write to the LCD. The LCD hardware is
|
||||
initialised from within the task itself so delays can be used. */
|
||||
xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );
|
||||
xTaskCreate( vLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );
|
||||
|
||||
return xLCDQueue;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvLCDGotoRow( unsigned portSHORT usRow )
|
||||
static void prvLCDGotoRow( unsigned short usRow )
|
||||
{
|
||||
if(usRow == 0)
|
||||
{
|
||||
|
@ -153,7 +153,7 @@ static void prvLCDGotoRow( unsigned portSHORT usRow )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvLCDCommand( portCHAR cCommand )
|
||||
static void prvLCDCommand( char cCommand )
|
||||
{
|
||||
PMPSetAddress( LCD_COMMAND_ADDRESS );
|
||||
PMPMasterWrite( cCommand );
|
||||
|
@ -161,7 +161,7 @@ static void prvLCDCommand( portCHAR cCommand )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvLCDData( portCHAR cChar )
|
||||
static void prvLCDData( char cChar )
|
||||
{
|
||||
PMPSetAddress( LCD_DATA_ADDRESS );
|
||||
PMPMasterWrite( cChar );
|
||||
|
@ -169,7 +169,7 @@ static void prvLCDData( portCHAR cChar )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvLCDPutString( portCHAR *pcString )
|
||||
static void prvLCDPutString( char *pcString )
|
||||
{
|
||||
/* Write out each character with appropriate delay between each. */
|
||||
while(*pcString)
|
||||
|
@ -226,7 +226,7 @@ static void prvSetupLCD(void)
|
|||
static void vLCDTask(void *pvParameters)
|
||||
{
|
||||
xLCDMessage xMessage;
|
||||
unsigned portSHORT usRow = 0;
|
||||
unsigned short usRow = 0;
|
||||
|
||||
/* Initialise the hardware. This uses delays so must not be called prior
|
||||
to the scheduler being started. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue