This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Setting port as output, turn on led

Hello everyone. I have an evaluation kit EKK-LM3S9B96. I try to write simply program, just turn on led. I think i do it good and i don't know where i do mistake.

#include <LM3Sxxxx.H>
int main()
{
        GPIODirModeSet(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_DIR_MODE_OUT);
        GPIOPinWrite(GPIO_PORTD_BASE,GPIO_PIN_7,0xff);
}


I set pin 7 as out and next put there 1. I would be greatfull for some help.

Parents
  • Yes is me. Forgot paste link there. Once again. I really have EKK not DK Evaluation Kit. I have header LM3Sxxxx.H. There is hw_gpio.h and gpio.h documents. They have some APIs that i use in program. But Blinky use functions that aren't declared in my header. Therefore i don't understand when You write that Blinky is for every Evaluation Kit. What i should do? Many thanks for help.

Reply
  • Yes is me. Forgot paste link there. Once again. I really have EKK not DK Evaluation Kit. I have header LM3Sxxxx.H. There is hw_gpio.h and gpio.h documents. They have some APIs that i use in program. But Blinky use functions that aren't declared in my header. Therefore i don't understand when You write that Blinky is for every Evaluation Kit. What i should do? Many thanks for help.

Children
No data