summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/ARM7_LPC2368_Eclipse
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-12-29 14:49:03 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-12-29 14:49:03 +0000
commit6b2b990e0289275d42f7105714f2015a536b5318 (patch)
treef39f32b87b2e24bcca3736f78279a9266b93496b /FreeRTOS/Demo/ARM7_LPC2368_Eclipse
parentd372e7d433d0a6c06b8a7c3220efe42fbcec02a1 (diff)
downloadfreertos-6b2b990e0289275d42f7105714f2015a536b5318.tar.gz
Replace use of legacy portTYPE macros from old demos and standard demo files.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2148 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Demo/ARM7_LPC2368_Eclipse')
-rw-r--r--FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/ParTest/ParTest.c16
-rw-r--r--FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c30
-rw-r--r--FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/uIP_Task.c6
3 files changed, 26 insertions, 26 deletions
diff --git a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/ParTest/ParTest.c b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/ParTest/ParTest.c
index 1b37e6324..7baaef6d2 100644
--- a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/ParTest/ParTest.c
+++ b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/ParTest/ParTest.c
@@ -69,9 +69,9 @@
/* Demo application includes. */
#include "partest.h"
-#define partstFIRST_IO ( ( unsigned portLONG ) 0x01 )
+#define partstFIRST_IO ( ( unsigned long ) 0x01 )
#define partstNUM_LEDS ( 8 )
-#define partstALL_OUTPUTS_OFF ( ( unsigned portLONG ) 0xff )
+#define partstALL_OUTPUTS_OFF ( ( unsigned long ) 0xff )
/*-----------------------------------------------------------
* Simple parallel port IO routines.
@@ -91,12 +91,12 @@ void vParTestInitialise( void )
void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
{
-unsigned portLONG ulLED = partstFIRST_IO;
+unsigned long ulLED = partstFIRST_IO;
if( uxLED < partstNUM_LEDS )
{
/* Rotate to the wanted bit of port */
- ulLED <<= ( unsigned portLONG ) uxLED;
+ ulLED <<= ( unsigned long ) uxLED;
/* Set of clear the output. */
if( xValue )
@@ -113,13 +113,13 @@ unsigned portLONG ulLED = partstFIRST_IO;
void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
{
-unsigned portLONG ulLED = partstFIRST_IO, ulCurrentState;
+unsigned long ulLED = partstFIRST_IO, ulCurrentState;
if( uxLED < partstNUM_LEDS )
{
/* Rotate to the wanted bit of port 0. Only P10 to P13 have an LED
attached. */
- ulLED <<= ( unsigned portLONG ) uxLED;
+ ulLED <<= ( unsigned long ) uxLED;
/* If this bit is already set, clear it, and vice versa. */
ulCurrentState = FIO2PIN;
@@ -137,9 +137,9 @@ unsigned portLONG ulLED = partstFIRST_IO, ulCurrentState;
/*-----------------------------------------------------------*/
unsigned portBASE_TYPE uxParTextGetLED( unsigned portBASE_TYPE uxLED )
{
-unsigned portLONG ulLED = partstFIRST_IO;
+unsigned long ulLED = partstFIRST_IO;
- ulLED <<= ( unsigned portLONG ) uxLED;
+ ulLED <<= ( unsigned long ) uxLED;
return ( FIO2PIN & ulLED );
}
diff --git a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c
index e6357c411..9983fae18 100644
--- a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c
+++ b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c
@@ -117,22 +117,22 @@
#define mainGEN_QUEUE_TASK_PRIORITY ( tskIDLE_PRIORITY )
/* Constants to setup the PLL. */
-#define mainPLL_MUL ( ( unsigned portLONG ) ( 8 - 1 ) )
-#define mainPLL_DIV ( ( unsigned portLONG ) 0x0000 )
-#define mainCPU_CLK_DIV ( ( unsigned portLONG ) 0x0003 )
-#define mainPLL_ENABLE ( ( unsigned portLONG ) 0x0001 )
-#define mainPLL_CONNECT ( ( ( unsigned portLONG ) 0x0002 ) | mainPLL_ENABLE )
-#define mainPLL_FEED_BYTE1 ( ( unsigned portLONG ) 0xaa )
-#define mainPLL_FEED_BYTE2 ( ( unsigned portLONG ) 0x55 )
-#define mainPLL_LOCK ( ( unsigned portLONG ) 0x4000000 )
-#define mainPLL_CONNECTED ( ( unsigned portLONG ) 0x2000000 )
-#define mainOSC_ENABLE ( ( unsigned portLONG ) 0x20 )
-#define mainOSC_STAT ( ( unsigned portLONG ) 0x40 )
-#define mainOSC_SELECT ( ( unsigned portLONG ) 0x01 )
+#define mainPLL_MUL ( ( unsigned long ) ( 8 - 1 ) )
+#define mainPLL_DIV ( ( unsigned long ) 0x0000 )
+#define mainCPU_CLK_DIV ( ( unsigned long ) 0x0003 )
+#define mainPLL_ENABLE ( ( unsigned long ) 0x0001 )
+#define mainPLL_CONNECT ( ( ( unsigned long ) 0x0002 ) | mainPLL_ENABLE )
+#define mainPLL_FEED_BYTE1 ( ( unsigned long ) 0xaa )
+#define mainPLL_FEED_BYTE2 ( ( unsigned long ) 0x55 )
+#define mainPLL_LOCK ( ( unsigned long ) 0x4000000 )
+#define mainPLL_CONNECTED ( ( unsigned long ) 0x2000000 )
+#define mainOSC_ENABLE ( ( unsigned long ) 0x20 )
+#define mainOSC_STAT ( ( unsigned long ) 0x40 )
+#define mainOSC_SELECT ( ( unsigned long ) 0x01 )
/* Constants to setup the MAM. */
-#define mainMAM_TIM_3 ( ( unsigned portCHAR ) 0x03 )
-#define mainMAM_MODE_FULL ( ( unsigned portCHAR ) 0x02 )
+#define mainMAM_TIM_3 ( ( unsigned char ) 0x03 )
+#define mainMAM_MODE_FULL ( ( unsigned char ) 0x02 )
/*
* The task that handles the uIP stack. All TCP/IP processing is performed in
@@ -191,7 +191,7 @@ void vApplicationTickHook( void )
{
unsigned portBASE_TYPE uxColumn = 0;
static xLCDMessage xMessage = { 0, "PASS" };
-static unsigned portLONG ulTicksSinceLastDisplay = 0;
+static unsigned long ulTicksSinceLastDisplay = 0;
static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
/* Called from every tick interrupt. Have enough ticks passed to make it
diff --git a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/uIP_Task.c b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/uIP_Task.c
index e13f4de02..1ec9ce5bb 100644
--- a/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/uIP_Task.c
+++ b/FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/uIP_Task.c
@@ -171,7 +171,7 @@ extern void ( vEMAC_ISR_Wrapper )( void );
{
MAC_INTENABLE = INT_RX_DONE;
VICIntEnable |= 0x00200000;
- VICVectAddr21 = ( portLONG ) vEMAC_ISR_Wrapper;
+ VICVectAddr21 = ( long ) vEMAC_ISR_Wrapper;
prvSetMACAddress();
}
portEXIT_CRITICAL();
@@ -281,10 +281,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 xLCDQueue;
xLCDMessage xLCDMessage;