AnsweredAssumed Answered

question about BF526-ezbrd.h - how to get LED0 to flash

Question asked by mattp Employee on Jul 2, 2013
Latest reply on Jul 8, 2013 by Aaronwu

I have modified BF526-ezbrd.h in u-boot-2012.07-rc2-2012R2-RC3 as follows:

 

*******************************************************

/* define to enable run status via led */

#define CONFIG_STATUS_LED

 

#ifdef CONFIG_STATUS_LED

#define CONFIG_GPIO_LED

#define CONFIG_BOARD_SPECIFIC_LED

/* use LED0 to indicate booting/alive */

#define STATUS_LED_BOOT 0

#define STATUS_LED_BIT GPIO_PF8

#define STATUS_LED_STATE STATUS_LED_ON

#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 1)

/* use LED1 to indicate crash */

#define STATUS_LED_CRASH 1

#define STATUS_LED_BIT1 GPIO_PG11

#define STATUS_LED_STATE1 STATUS_LED_ON

#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)

/* #define STATUS_LED_BIT2 GPIO_PG12 */

#endif

 

******************************************************

 

This causes LED0 (connected to BF526 GPIO_PF8) to light up but it does not flash.

 

What do I need to do to make it flash on and off?

 

Thanks,

Matt

Outcomes