mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -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
|
@ -92,7 +92,7 @@
|
|||
|
||||
//! Server address
|
||||
#error configure SMTP server address
|
||||
portCHAR cServer[] = "192.168.0.1";
|
||||
char cServer[] = "192.168.0.1";
|
||||
|
||||
//! Fill here the mailfrom with your mail address
|
||||
#error configure SMTP mail sender
|
||||
|
@ -110,7 +110,7 @@ char cMailcontent[] ="Subject: *** SPAM ***\r\nFROM: \"Your Name here\" <sender@
|
|||
Bool bSendMail = pdFALSE;
|
||||
|
||||
//! buffer for SMTP response
|
||||
portCHAR cTempBuffer[200];
|
||||
char cTempBuffer[200];
|
||||
|
||||
|
||||
//_____ D E C L A R A T I O N S ____________________________________________
|
||||
|
@ -134,8 +134,8 @@ static portBASE_TYPE prvpushb_ISR_NonNakedBehaviour( void );
|
|||
portTASK_FUNCTION( vBasicSMTPClient, pvParameters )
|
||||
{
|
||||
struct sockaddr_in stServeurSockAddr;
|
||||
portLONG lRetval;
|
||||
portLONG lSocket = -1;
|
||||
long lRetval;
|
||||
long lSocket = -1;
|
||||
|
||||
// configure push button 0 to produce IT on falling edge
|
||||
gpio_enable_pin_interrupt(GPIO_PUSH_BUTTON_0 , GPIO_FALLING_EDGE);
|
||||
|
|
|
@ -128,7 +128,7 @@ tftpd_send_error(int s, struct tftphdr * reply, int err,
|
|||
}
|
||||
}
|
||||
|
||||
portCHAR cRamBuffer[2048];
|
||||
char cRamBuffer[2048];
|
||||
int lCurrentBlock = 0;
|
||||
int lTotalLength = 0;
|
||||
|
||||
|
@ -145,7 +145,7 @@ int tftpd_open_data_file(int fd, int mode)
|
|||
return (5);
|
||||
}
|
||||
|
||||
int tftpd_read_data_file(int fd, portCHAR * buffer, int length)
|
||||
int tftpd_read_data_file(int fd, char * buffer, int length)
|
||||
{
|
||||
int lReturnValue;
|
||||
|
||||
|
@ -165,7 +165,7 @@ int lReturnValue;
|
|||
//
|
||||
// callback to store data to the RAM buffer
|
||||
//
|
||||
int tftpd_write_data_file(int fd, portCHAR * buffer, int length)
|
||||
int tftpd_write_data_file(int fd, char * buffer, int length)
|
||||
{
|
||||
lTotalLength += length;
|
||||
memcpy(&cRamBuffer[lCurrentBlock * SEGSIZE], buffer, length);
|
||||
|
@ -407,7 +407,7 @@ portTASK_FUNCTION( vBasicTFTPServer, pvParameters )
|
|||
int lSocket;
|
||||
int lDataLen, lRecvLen, lFromLen;
|
||||
struct sockaddr_in sLocalAddr, sFromAddr;
|
||||
portCHAR cData[SEGSIZE+sizeof(struct tftphdr)];
|
||||
char cData[SEGSIZE+sizeof(struct tftphdr)];
|
||||
struct tftphdr *sHdr = (struct tftphdr *)cData;
|
||||
|
||||
// Set up port
|
||||
|
|
|
@ -104,8 +104,8 @@
|
|||
\r\n</font></BODY>\
|
||||
</html>"
|
||||
|
||||
portCHAR cDynamicPage[ webMAX_PAGE_SIZE ];
|
||||
portCHAR cPageHits[ 11 ];
|
||||
char cDynamicPage[ webMAX_PAGE_SIZE ];
|
||||
char cPageHits[ 11 ];
|
||||
|
||||
|
||||
/*! Function to process the current connection */
|
||||
|
@ -154,9 +154,9 @@ struct netconn *pxHTTPListener, *pxNewConnection;
|
|||
static void prvweb_ParseHTMLRequest( struct netconn *pxNetCon )
|
||||
{
|
||||
struct netbuf *pxRxBuffer;
|
||||
portCHAR *pcRxString;
|
||||
unsigned portSHORT usLength;
|
||||
static unsigned portLONG ulPageHits = 0;
|
||||
char *pcRxString;
|
||||
unsigned short usLength;
|
||||
static unsigned long ulPageHits = 0;
|
||||
|
||||
/* We expect to immediately get data. */
|
||||
pxRxBuffer = netconn_recv( pxNetCon );
|
||||
|
|
|
@ -170,7 +170,7 @@ static void prvEthernetConfigureInterface(void * param)
|
|||
{
|
||||
struct ip_addr xIpAddr, xNetMask, xGateway;
|
||||
extern err_t ethernetif_init( struct netif *netif );
|
||||
portCHAR MacAddress[6];
|
||||
char MacAddress[6];
|
||||
|
||||
/* Default MAC addr. */
|
||||
MacAddress[0] = ETHERNET_CONF_ETHADDR0;
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
/* Message queue constants. */
|
||||
#define archMESG_QUEUE_LENGTH ( 6 )
|
||||
#define archPOST_BLOCK_TIME_MS ( ( unsigned portLONG ) 10000 )
|
||||
#define archPOST_BLOCK_TIME_MS ( ( unsigned long ) 10000 )
|
||||
|
||||
struct timeoutlist
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue