Thanks, Chris,
It solves my issue. I found the macro definitions in freedom.h
#define LED0_DIR (GPIOB_PDDR |= (1<<18))
#define LED1_DIR (GPIOB_PDDR |= (1<<19))
#define LED2_DIR (GPIOD_PDDR |= (1<<1))
#define LED3_DIR
In SW_LED_Init()
LED0_EN; // (PORTA_PCR16 = PORT_PCR_MUX(1))
GPIOA_PDDR |= (1<<16);
LED1_EN; // (PORTA_PCR17 = PORT_PCR_MUX(1))
GPIOA_PDDR |= (1<<17);
LED2_EN; // (PORTB_PCR8 = PORT_PCR_MUX(1))
GPIOB_PDDR |= (1<<8);
LED3_EN; // (PORTA_PCR5 = PORT_PCR_MUX(1))
GPIOA_PDDR |= (1<<5);
The LED0/1/2/3 were setup as PTA16/PTA17/PTB8/PTA5. I guess it is a issue due to wrong GPIO layout due to clone source from other projects.
Yours sincerely
Allan K Liu