1 /* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
\r
2 /* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
\r
3 /* ELIGIBILITY FOR ANY PURPOSES. */
\r
4 /* (C) Fujitsu Microelectronics Europe GmbH */
\r
5 /*------------------------------------------------------------------------
\r
8 - See README.TXT for project description and disclaimer.
\r
9 -------------------------------------------------------------------------*/
\r
10 /*************************@INCLUDE_START************************/
\r
13 /* TODO: Add comment here regarding the behaviour of the demo. */
\r
16 /* Hardware specific includes. */
\r
17 #include "mb91467d.h"
\r
19 /* Scheduler includes. */
\r
20 #include "FreeRTOS.h"
\r
23 static unsigned portSHORT sState[ ledNUMBER_OF_LEDS ] = { pdFALSE };
\r
24 static unsigned portSHORT sState1[ ledNUMBER_OF_LEDS ] = { pdFALSE };
\r
26 /*-----------------------------------------------------------*/
\r
27 static void vPartestInitialise( void )
\r
32 /*-----------------------------------------------------------*/
\r
34 void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
\r
36 if (uxLED < ledNUMBER_OF_LEDS)
\r
40 /* Toggle the state of the single genuine on board LED. */
\r
43 PDR25 |= (1 << uxLED);
\r
47 PDR25 &= ~(1 << uxLED);
\r
50 sState[uxLED] = !(sState[uxLED]);
\r
56 uxLED -= ledNUMBER_OF_LEDS;
\r
60 /* Toggle the state of the single genuine on board LED. */
\r
61 if( sState1[uxLED])
\r
63 PDR16 |= (1 << uxLED);
\r
67 PDR16 &= ~(1 << uxLED);
\r
70 sState1[uxLED] = !(sState1[uxLED]);
\r
75 /*-----------------------------------------------------------*/
\r
77 void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
\r
79 /* Set or clear the output [in this case show or hide the '*' character. */
\r
80 if( uxLED < ledNUMBER_OF_LEDS )
\r
86 PDR25 |= (1 << uxLED);
\r
91 PDR25 &= ~(1 << uxLED);
\r
99 uxLED -= ledNUMBER_OF_LEDS;
\r
104 PDR16 |= (1 << uxLED);
\r
105 sState1[uxLED] = 1;
\r
109 PDR16 &= ~(1 << uxLED);
\r
110 sState1[uxLED] = 0;
\r
116 /*-----------------------------------------------------------*/
\r