/* Remember the state of the outputs for easy toggling. */\r
static unsigned char ucPortState = 0;\r
\r
+static const mss_gpio_id_t ucLEDs[ partstNUM_LEDS ] = { MSS_GPIO_0, MSS_GPIO_1 };\r
+\r
/*-----------------------------------------------------------*/\r
\r
void vParTestInitialise( void )\r
/* Initialise MSS GPIOs. */\r
MSS_GPIO_init();\r
\r
- /* Configure MSS GPIOs. */\r
- MSS_GPIO_config( MSS_GPIO_0 , MSS_GPIO_OUTPUT_MODE );\r
- MSS_GPIO_config( MSS_GPIO_1 , MSS_GPIO_OUTPUT_MODE );\r
- MSS_GPIO_config( MSS_GPIO_2 , MSS_GPIO_OUTPUT_MODE );\r
- MSS_GPIO_config( MSS_GPIO_3 , MSS_GPIO_OUTPUT_MODE );\r
-\r
- /* Ensure the LEDs are off to start. */\r
+ /* Ensure the LEDs are outputs and off to start. */\r
for( x = 0; x < partstNUM_LEDS; x++ )\r
{\r
+ MSS_GPIO_config( ucLEDs[ x ], MSS_GPIO_OUTPUT_MODE );\r
vParTestSetLED( x, pdFALSE );\r
}\r
}\r
{\r
taskENTER_CRITICAL();\r
{\r
- MSS_GPIO_set_output( ( mss_gpio_id_t ) uxLED, xValue );\r
+ MSS_GPIO_set_output( ucLEDs[ uxLED ], xValue );\r
\r
/* Remember the new output state. */\r
if( xValue == 0 )\r