mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-02-20 00:55:28 -05: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
|
|
@ -75,7 +75,7 @@
|
|||
#define partstMAX_OUTPUT_LED ( 2 )
|
||||
#define partstFIRST_LED GPIO_Pin_8
|
||||
|
||||
static unsigned portSHORT usOutputValue = 0;
|
||||
static unsigned short usOutputValue = 0;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ GPIO_InitTypeDef GPIO_InitStructure;
|
|||
|
||||
void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
|
||||
{
|
||||
unsigned portSHORT usBit;
|
||||
unsigned short usBit;
|
||||
|
||||
vTaskSuspendAll();
|
||||
{
|
||||
|
|
@ -107,7 +107,7 @@ unsigned portSHORT usBit;
|
|||
|
||||
if( xValue == pdFALSE )
|
||||
{
|
||||
usBit ^= ( unsigned portSHORT ) 0xffff;
|
||||
usBit ^= ( unsigned short ) 0xffff;
|
||||
usOutputValue &= usBit;
|
||||
}
|
||||
else
|
||||
|
|
@ -124,7 +124,7 @@ unsigned portSHORT usBit;
|
|||
|
||||
void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
|
||||
{
|
||||
unsigned portSHORT usBit;
|
||||
unsigned short usBit;
|
||||
|
||||
vTaskSuspendAll();
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue