Hi guys,
I have a FRDM-KL05Z board. I wish to work on GPIO mode to turn on and off some led.
But i don't know how to configure GPIO. I have check the driver on QSP but I can't find.
Please help me,
Thank you,
Minh.
Thank you Jorge Gonzalez:smileyhappy:
Hi Jorge Gonzalez,
Thank you very much for your reply,
int main (void)
{
#if(defined(CW))
sysinit();
#endif
gpio_init();
printf("\nRunning the Blink project.\n");
while(1)
{
Delay(20000);
LED1_TOGGLE;
Delay(20000);
LED2_TOGGLE;
Delay(20000);
LED3_TOGGLE;
}
}
/********************************************************************/
I have tried to find gpio_Init() function, but i can't get it.
I want to see how to configure this function.
If It's possible, please help me on this component.
Thank,
Minh.
Hi:
That function is in freedom_gpio.c. The function contains macros, so it is better if you open the whole project in CodeWarrior, place the cursor over the macro, function, variable, etc, and press F3. This will take you to the definition of that piece of code.
Regards!
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello:
You will find a collection of sample codes in the next product link, under "Lab and Test Software". Inside there is a sample project called LED_BLINK for CodeWarrior, IAR and KEIL, and it contains guides to use the examples.
FRDM-KL05Z: Freescale Freedom Development Platform for the Kinetis KL05 and KL04 MCUs
Please download the package and if you face any problem please do not hesitate to ask :smileyhappy:
Regards!
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------