mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 20:03:50 -04:00
Replace use of legacy portTYPE macros from old demos and standard demo files.
This commit is contained in:
parent
3e20aa7d60
commit
b54158d1dc
123 changed files with 736 additions and 736 deletions
|
@ -105,20 +105,20 @@ xSemaphoreHandle xMACInterruptSemaphore = NULL;
|
|||
|
||||
/* The buffer used by the uIP stack. In this case the pointer is used to
|
||||
point to one of the Rx buffers. */
|
||||
unsigned portCHAR *uip_buf;
|
||||
unsigned char *uip_buf;
|
||||
|
||||
/* Buffers into which Rx data is placed. */
|
||||
static union
|
||||
{
|
||||
unsigned portLONG ulJustForAlignment;
|
||||
unsigned portCHAR ucRxBuffers[ emacNUM_RX_BUFFERS ][ UIP_BUFSIZE + ( 4 * emacFRAM_SIZE_BYTES ) ];
|
||||
unsigned long ulJustForAlignment;
|
||||
unsigned char ucRxBuffers[ emacNUM_RX_BUFFERS ][ UIP_BUFSIZE + ( 4 * emacFRAM_SIZE_BYTES ) ];
|
||||
} uxRxBuffers;
|
||||
|
||||
/* The length of the data within each of the Rx buffers. */
|
||||
static unsigned portLONG ulRxLength[ emacNUM_RX_BUFFERS ];
|
||||
static unsigned long ulRxLength[ emacNUM_RX_BUFFERS ];
|
||||
|
||||
/* Used to keep a track of the number of bytes to transmit. */
|
||||
static unsigned portLONG ulNextTxSpace;
|
||||
static unsigned long ulNextTxSpace;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -194,7 +194,7 @@ void vInitialiseSend( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vIncrementTxLength( unsigned portLONG ulLength )
|
||||
void vIncrementTxLength( unsigned long ulLength )
|
||||
{
|
||||
ulNextTxSpace += ulLength;
|
||||
}
|
||||
|
@ -203,11 +203,11 @@ void vIncrementTxLength( unsigned portLONG ulLength )
|
|||
void vSendBufferToMAC( void )
|
||||
{
|
||||
unsigned long *pulSource;
|
||||
unsigned portSHORT * pus;
|
||||
unsigned portLONG ulNextWord;
|
||||
unsigned short * pus;
|
||||
unsigned long ulNextWord;
|
||||
|
||||
/* Locate the data to be send. */
|
||||
pus = ( unsigned portSHORT * ) uip_buf;
|
||||
pus = ( unsigned short * ) uip_buf;
|
||||
|
||||
/* Add in the size of the data. */
|
||||
pus--;
|
||||
|
@ -219,9 +219,9 @@ unsigned portLONG ulNextWord;
|
|||
vTaskDelay( macWAIT_SEND_TIME );
|
||||
}
|
||||
|
||||
pulSource = ( unsigned portLONG * ) pus;
|
||||
pulSource = ( unsigned long * ) pus;
|
||||
|
||||
for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned portLONG ) )
|
||||
for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned long ) )
|
||||
{
|
||||
HWREG(ETH_BASE + MAC_O_DATA) = *pulSource;
|
||||
pulSource++;
|
||||
|
@ -235,7 +235,7 @@ unsigned portLONG ulNextWord;
|
|||
void vEMAC_ISR( void )
|
||||
{
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
unsigned portLONG ulTemp;
|
||||
unsigned long ulTemp;
|
||||
|
||||
/* Clear the interrupt. */
|
||||
ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE );
|
||||
|
@ -256,9 +256,9 @@ unsigned portLONG ulTemp;
|
|||
void vMACHandleTask( void *pvParameters )
|
||||
{
|
||||
unsigned long i, ulInt;
|
||||
unsigned portLONG ulLength;
|
||||
unsigned long ulLength;
|
||||
unsigned long *pulBuffer;
|
||||
static unsigned portLONG ulNextRxBuffer = 0;
|
||||
static unsigned long ulNextRxBuffer = 0;
|
||||
|
||||
for( ;; )
|
||||
{
|
||||
|
@ -289,7 +289,7 @@ static unsigned portLONG ulNextRxBuffer = 0;
|
|||
}
|
||||
|
||||
/* Read out the data into our buffer. */
|
||||
for( i = 0; i < ulLength; i += sizeof( unsigned portLONG ) )
|
||||
for( i = 0; i < ulLength; i += sizeof( unsigned long ) )
|
||||
{
|
||||
*pulBuffer = HWREG( ETH_BASE + MAC_O_DATA );
|
||||
pulBuffer++;
|
||||
|
|
|
@ -269,7 +269,7 @@ static void prvENET_Send(void)
|
|||
|
||||
static void prvSetMACAddress( void )
|
||||
{
|
||||
unsigned portLONG ulUser0, ulUser1;
|
||||
unsigned long ulUser0, ulUser1;
|
||||
unsigned char pucMACArray[8];
|
||||
struct uip_eth_addr xAddr;
|
||||
|
||||
|
@ -297,10 +297,10 @@ struct uip_eth_addr xAddr;
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vApplicationProcessFormInput( portCHAR *pcInputString, portBASE_TYPE xInputLength )
|
||||
void vApplicationProcessFormInput( char *pcInputString, portBASE_TYPE xInputLength )
|
||||
{
|
||||
char *c, *pcText;
|
||||
static portCHAR cMessageForDisplay[ 32 ];
|
||||
static char cMessageForDisplay[ 32 ];
|
||||
extern xQueueHandle xOLEDQueue;
|
||||
xOLEDMessage xOLEDMessage;
|
||||
|
||||
|
@ -342,7 +342,7 @@ xOLEDMessage xOLEDMessage;
|
|||
|
||||
/* Write the message to the LCD. */
|
||||
strcpy( cMessageForDisplay, pcText );
|
||||
xOLEDMessage.pcMessage = ( signed portCHAR * ) cMessageForDisplay;
|
||||
xOLEDMessage.pcMessage = ( signed char * ) cMessageForDisplay;
|
||||
xQueueSend( xOLEDQueue, &xOLEDMessage, portMAX_DELAY );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue