Home arrow Support arrow Forums

Luminary Micro Forums

cb1

Platinum Boarder

2008/05/13 09:41

Re:Another beginners question

Hi back,

You are very close - the Peripheral Driver library supplied by LMI is most helpful and I would not move from it unless you have A high, high volume Application.

Add this line - just before your "while" loop

GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE, GPIO_PIN_2);

The ARM compilers are VERY literal - you have to "tell" them EVERYTHING before they behave properly. While initially annoying - you will learn that this is HOW you exploit the great power and flexibility of these chips!

Let us know how you get along...

login or register to reply

      Topics Author Date
    thread link
Another beginners question
valgamaa 2008/05/12 15:55
    thread link
thread linkthread link Re:Another beginners question
cb1 2008/05/13 09:41
    thread link
thread linkthread linkthread link Re:Another beginners question
valgamaa 2008/05/13 14:01