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
|