Home/Support/Support Forum/Timer API Sample (GPIO and LED's)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Timer API Sample (GPIO and LED's)

0 votes
When i run the Timer API Sample program the LEDs do not turn on & off. I have set the switch banks correctly. The code does not appear to set the GPIO direction to output. I assume this is the bug.

Where do i find the values(macro) to use when calling naGpioSetOutput(function,default_value) to set the GPIO direction?

The help does not explain this.

Thanks in advance for the help.
asked May 25, 2007 in NET+OS by embweb New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
First I'd make sure you have the most current patches if you haven't already. Then I'd recommend reading through the readme that comes with the example, as they usually indicate some changes to the BSP (I haven't looked at the example myself yet). Otherwise, you can take a look at gpio_def.h and gpiomux_def.h.
answered May 26, 2007 by charliek Veteran of the Digi Community (408 points)
0 votes
After reviewing the sample in greater detail, it appears that the LED's that are blinked are the green and yellow LED's on the module itself, and that they are defined in customizeLed.c in the platforms directory.
answered May 30, 2007 by charliek Veteran of the Digi Community (408 points)