mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Replace use of legacy portTYPE macros from old demos and standard demo files.
This commit is contained in:
parent
3e20aa7d60
commit
b54158d1dc
123 changed files with 736 additions and 736 deletions
|
@ -51,15 +51,15 @@
|
|||
* Simple parallel port IO routines.
|
||||
*-----------------------------------------------------------*/
|
||||
|
||||
#define partstALL_OUTPUTS_OFF ( ( unsigned portCHAR ) 0x00 )
|
||||
#define partstALL_OUTPUTS_OFF ( ( unsigned char ) 0x00 )
|
||||
#if( BOARD==EVK1100 )
|
||||
# define partstMAX_OUTPUT_LED ( ( unsigned portCHAR ) 8 )
|
||||
# define partstMAX_OUTPUT_LED ( ( unsigned char ) 8 )
|
||||
|
||||
#elif( BOARD==EVK1101 )
|
||||
# define partstMAX_OUTPUT_LED ( ( unsigned portCHAR ) 4 )
|
||||
# define partstMAX_OUTPUT_LED ( ( unsigned char ) 4 )
|
||||
#endif
|
||||
|
||||
static volatile unsigned portCHAR ucCurrentOutputValue = partstALL_OUTPUTS_OFF; /*lint !e956 File scope parameters okay here. */
|
||||
static volatile unsigned char ucCurrentOutputValue = partstALL_OUTPUTS_OFF; /*lint !e956 File scope parameters okay here. */
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -71,14 +71,14 @@ void vParTestInitialise( void )
|
|||
|
||||
void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
|
||||
{
|
||||
unsigned portCHAR ucBit;
|
||||
unsigned char ucBit;
|
||||
|
||||
if( uxLED >= partstMAX_OUTPUT_LED )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ucBit = ( ( unsigned portCHAR ) 1 ) << uxLED;
|
||||
ucBit = ( ( unsigned char ) 1 ) << uxLED;
|
||||
|
||||
vTaskSuspendAll();
|
||||
{
|
||||
|
@ -99,14 +99,14 @@ unsigned portCHAR ucBit;
|
|||
|
||||
void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
||||
{
|
||||
unsigned portCHAR ucBit;
|
||||
unsigned char ucBit;
|
||||
|
||||
if( uxLED >= partstMAX_OUTPUT_LED )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ucBit = ( ( unsigned portCHAR ) 1 ) << uxLED;
|
||||
ucBit = ( ( unsigned char ) 1 ) << uxLED;
|
||||
|
||||
vTaskSuspendAll();
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue