/*-----------------------------------------------------------*/\r
void vParTestInitialise( void )\r
{\r
+portBASE_TYPE x;\r
+\r
/* Set port for LED outputs. */\r
- DDR16 = 0xFF;\r
- DDR25 = 0xFF;\r
+ DDR00 = 0xFF;\r
+ DDR09 = 0xFF;\r
\r
/* Start with LEDs off. */\r
- PDR25 = 0x00;\r
- PDR16 = 0x00;\r
+ PDR09 = 0xff;\r
+ PDR00 = 0xff;\r
+\r
+ for( x = 0; x < partstNUM_LEDs; x++ )\r
+ {\r
+ sState[ x ] = pdTRUE;\r
+ sState1[ x ] = pdTRUE;\r
+ }\r
}\r
/*-----------------------------------------------------------*/\r
\r
/* Toggle the state of the single genuine on board LED. */\r
if( sState[ uxLED ] )\r
{\r
- PDR25 |= ( 1 << uxLED );\r
+ PDR09 |= ( 1 << uxLED );\r
}\r
else\r
{\r
- PDR25 &= ~( 1 << uxLED );\r
+ PDR09 &= ~( 1 << uxLED );\r
}\r
\r
sState[uxLED] = !( sState[ uxLED ] );\r
/* Toggle the state of the single genuine on board LED. */\r
if( sState1[uxLED]) \r
{\r
- PDR16 |= ( 1 << uxLED );\r
+ PDR00 |= ( 1 << uxLED );\r
}\r
else\r
{\r
- PDR16 &= ~( 1 << uxLED );\r
+ PDR00 &= ~( 1 << uxLED );\r
}\r
\r
sState1[ uxLED ] = !( sState1[ uxLED ] );\r
{\r
if( xValue )\r
{\r
- PDR25 |= ( 1 << uxLED );\r
+ PDR09 |= ( 1 << uxLED );\r
sState[ uxLED ] = 1;\r
}\r
else\r
{\r
- PDR25 &= ~( 1 << uxLED );\r
+ PDR09 &= ~( 1 << uxLED );\r
sState[ uxLED ] = 0;\r
}\r
}\r
{\r
if( xValue )\r
{\r
- PDR16 |= ( 1 << uxLED );\r
+ PDR00 |= ( 1 << uxLED );\r
sState1[ uxLED ] = 1;\r
}\r
else\r
{\r
- PDR16 &= ~( 1 << uxLED );\r
+ PDR00 &= ~( 1 << uxLED );\r
sState1[ uxLED ] = 0;\r
}\r
}\r