projects
/
bcm963xx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.usr.com/support/gpl/USR9107_release1.1.tar.gz
[bcm963xx.git]
/
bcmdrivers
/
opensource
/
char
/
board
/
bcm963xx
/
impl1
/
bcm63xx_led.c
diff --git
a/bcmdrivers/opensource/char/board/bcm963xx/impl1/bcm63xx_led.c
b/bcmdrivers/opensource/char/board/bcm963xx/impl1/bcm63xx_led.c
index
8de0f91
..
c45dfc4
100755
(executable)
--- a/
bcmdrivers/opensource/char/board/bcm963xx/impl1/bcm63xx_led.c
+++ b/
bcmdrivers/opensource/char/board/bcm963xx/impl1/bcm63xx_led.c
@@
-492,7
+492,12
@@
void boardLedCtrl(BOARD_LED_NAME ledName, BOARD_LED_STATE ledState)
// in the board parameters, change the state to kLedStateFastBlinkContinues.
if( ledState == kLedStateFail && ledInfoPtr->ledMaskFail == 0 )
ledState = kLedStateFastBlinkContinues;
// in the board parameters, change the state to kLedStateFastBlinkContinues.
if( ledState == kLedStateFail && ledInfoPtr->ledMaskFail == 0 )
ledState = kLedStateFastBlinkContinues;
-
+//#define USR9108
+#ifdef USR9108
+ if( ledName != kLedWanData )
+ printk("LEDCTRL: Led %d state %d mask %x\n",
+ ledName, ledState, ledInfoPtr->ledMask);
+#endif
switch (ledState)
{
case kLedStateOn:
switch (ledState)
{
case kLedStateOn:
@@
-532,11
+537,13
@@
void boardLedCtrl(BOARD_LED_NAME ledName, BOARD_LED_STATE ledState)
break;
case kLedStateBlinkOnce:
break;
case kLedStateBlinkOnce:
+ // USR9108 Blink only if Led is On!
// skip blinkOnce if it is already in Slow/Fast blink continues state
// skip blinkOnce if it is already in Slow/Fast blink continues state
- if (ledInfoPtr->savedLedState == kLedStateSlowBlinkContinues ||
- ledInfoPtr->savedLedState == kLedStateFastBlinkContinues)
- ;
- else
+// if (ledInfoPtr->savedLedState == kLedStateSlowBlinkContinues ||
+// ledInfoPtr->savedLedState == kLedStateFastBlinkContinues)
+// ;
+// else
+ if ( ledInfoPtr->savedLedState == kLedStateOn )
{
if (ledInfoPtr->blinkCountDown == 0) // skip the call if it is 1
{
{
if (ledInfoPtr->blinkCountDown == 0) // skip the call if it is 1
{