omap3530/beagle_drivers/led/led.cpp
branchGCC_SURGE
changeset 120 10294cf40451
parent 82 65b40f262685
equal deleted inserted replaced
110:c1bfa2b1009b 120:10294cf40451
    39 	TInt r = GPIO::SetPinDirection(KGPIO_LED0, GPIO::EOutput);
    39 	TInt r = GPIO::SetPinDirection(KGPIO_LED0, GPIO::EOutput);
    40 	if (r == KErrNone)
    40 	if (r == KErrNone)
    41 		{
    41 		{
    42 		GPIO::SetPinMode(KGPIO_LED0, GPIO::EEnabled);
    42 		GPIO::SetPinMode(KGPIO_LED0, GPIO::EEnabled);
    43 		GPIO::SetOutputState(KGPIO_LED0, GPIO::ELow);
    43 		GPIO::SetOutputState(KGPIO_LED0, GPIO::ELow);
    44 		iTimer.OneShot(NKern::TimerTicks(KBeatTimeInSeconds * 1000));		
    44 		iTimer.OneShot(NKern::TimerTicks(KBeatTimeInSeconds * 1000));
    45 		}
    45 		}
    46 	else
    46 	else
    47 		{
    47 		{
    48 		Kern::Printf("LedHeartBeat: SetPinDirection for LED failed, r %d", r);
    48 		Kern::Printf("LedHeartBeat: SetPinDirection for LED failed, r %d", r);
    49 		}
    49 		}