mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Continue work on MCF52233 demo.
This commit is contained in:
parent
31606543da
commit
18f84c805f
32 changed files with 3949 additions and 438 deletions
|
@ -110,3 +110,20 @@ void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
unsigned portBASE_TYPE uxParTestGetLED( unsigned portBASE_TYPE uxLED )
|
||||
{
|
||||
unsigned portBASE_TYPE uxReturn = pdFALSE;
|
||||
|
||||
if( uxLED < partstNUM_LEDs )
|
||||
{
|
||||
if( ( MCF_GPIO_PORTTC & ( 1 << uxLED ) ) != 0 )
|
||||
{
|
||||
uxReturn = pdTRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return uxReturn;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue