mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-20 09:05:30 -05: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
|
|
@ -136,7 +136,7 @@ one not be immediately available when trying to transmit a frame. */
|
|||
#define emacMAX_WAIT_CYCLES ( ( portBASE_TYPE ) ( configTICK_RATE_HZ / 40 ) )
|
||||
|
||||
/* The time to block waiting for input. */
|
||||
#define emacBLOCK_TIME_WAITING_FOR_INPUT ( ( portTickType ) 100 )
|
||||
#define emacBLOCK_TIME_WAITING_FOR_INPUT ( ( TickType_t ) 100 )
|
||||
|
||||
/* Peripheral setup for the EMAC. */
|
||||
#define emacPERIPHERAL_A_SETUP ( ( unsigned long ) AT91C_PB2_ETX0 ) | \
|
||||
|
|
@ -162,7 +162,7 @@ one not be immediately available when trying to transmit a frame. */
|
|||
#define emacINTERRUPT_LEVEL ( 5 )
|
||||
#define emacNO_DELAY ( 0 )
|
||||
#define emacTOTAL_FRAME_HEADER_SIZE ( 54 )
|
||||
#define emacPHY_INIT_DELAY ( 5000 / portTICK_RATE_MS )
|
||||
#define emacPHY_INIT_DELAY ( 5000 / portTICK_PERIOD_MS )
|
||||
#define emacRESET_KEY ( ( unsigned long ) 0xA5000000 )
|
||||
#define emacRESET_LENGTH ( ( unsigned long ) ( 0x01 << 8 ) )
|
||||
|
||||
|
|
@ -224,7 +224,7 @@ static portBASE_TYPE prvProbePHY( void );
|
|||
|
||||
|
||||
/* The semaphore used by the EMAC ISR to wake the EMAC task. */
|
||||
static xSemaphoreHandle xSemaphore = NULL;
|
||||
static SemaphoreHandle_t xSemaphore = NULL;
|
||||
|
||||
/* Holds the index to the next buffer from which data will be read. */
|
||||
static volatile unsigned long ulNextRxBuffer = 0;
|
||||
|
|
@ -485,7 +485,7 @@ register unsigned long ulBytesRemainingInBuffer, ulRemainingSectionBytes;
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* See the header file for descriptions of public functions. */
|
||||
xSemaphoreHandle xEMACInit( void )
|
||||
SemaphoreHandle_t xEMACInit( void )
|
||||
{
|
||||
/* Code supplied by Atmel -------------------------------*/
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ Changes from V3.2.4
|
|||
* is used by the EMAC ISR to indicate that Rx packets have been received.
|
||||
* If the initialisation fails then NULL is returned.
|
||||
*/
|
||||
xSemaphoreHandle xEMACInit( void );
|
||||
SemaphoreHandle_t xEMACInit( void );
|
||||
|
||||
/*
|
||||
* Send ulLength bytes from pcFrom. This copies the buffer to one of the
|
||||
|
|
@ -129,7 +129,7 @@ void vEMACRead( char *pcTo, unsigned long ulSectionLength, unsigned long ulTotal
|
|||
* files as the driver is compiled to THUMB, and the ISR to ARM. This function
|
||||
* simply passes the semaphore used to communicate between the two.
|
||||
*/
|
||||
void vPassEMACSemaphore( xSemaphoreHandle xCreatedSemaphore );
|
||||
void vPassEMACSemaphore( SemaphoreHandle_t xCreatedSemaphore );
|
||||
|
||||
/*
|
||||
* Called by the Tx interrupt, this function traverses the buffers used to
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
/* The semaphore used to signal the arrival of new data to the interface
|
||||
task. */
|
||||
static xSemaphoreHandle xSemaphore = NULL;
|
||||
static SemaphoreHandle_t xSemaphore = NULL;
|
||||
|
||||
/* The interrupt entry point is naked so we can control the context saving. */
|
||||
void vEMACISR_Wrapper( void ) __attribute__((naked));
|
||||
|
|
@ -141,7 +141,7 @@ void vEMACISR_Wrapper( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vPassEMACSemaphore( xSemaphoreHandle xCreatedSemaphore )
|
||||
void vPassEMACSemaphore( SemaphoreHandle_t xCreatedSemaphore )
|
||||
{
|
||||
/* Simply store the semaphore that should be used by the ISR. */
|
||||
xSemaphore = xCreatedSemaphore;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue