mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Minor updates.
This commit is contained in:
parent
f374044a1c
commit
ea30213367
8 changed files with 712 additions and 192 deletions
|
@ -49,6 +49,9 @@
|
|||
|
||||
#include "FreeRTOS.h"
|
||||
#include "partest.h"
|
||||
#include "led.h"
|
||||
|
||||
#define partstNUM_LEDS ( 4 )
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
* Simple parallel port IO routines for the LED's.
|
||||
|
@ -56,19 +59,37 @@
|
|||
|
||||
void vParTestInitialise( void )
|
||||
{
|
||||
LED_Configure( 0 );
|
||||
LED_Configure( 1 );
|
||||
unsigned long ul;
|
||||
|
||||
for( ul = 0; ul < partstNUM_LEDS; ul++ )
|
||||
{
|
||||
LED_Configure( ul );
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
|
||||
{
|
||||
if( uxLED < partstNUM_LEDS )
|
||||
{
|
||||
if( xValue == 0 )
|
||||
{
|
||||
LED_Clear( uxLED );
|
||||
}
|
||||
else
|
||||
{
|
||||
LED_Set( uxLED );
|
||||
}
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
||||
{
|
||||
LED_Toggle(1);
|
||||
if( uxLED < partstNUM_LEDS )
|
||||
{
|
||||
LED_Toggle( uxLED );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue