Hi,
I have some problems with the function Printf. I include the library <stdio.h> in my file main.c. The idea of my code is to turn on and off a green led. When I debug my code, I want to see on comsole the word: Green.
Here my code:
#include "S32K144.h" /* include peripheral declarations S32K144 */
#include <stdio.h>
int main(void)
{
PCC->PCCn[PCC_PORTD_INDEX] = 0x40000000;
PORTD->PCR[15] = 0x00000100;
PTD->PDDR = 0x00008000; /*output*/
for(;;) {
PTD->PDOR = 0;
PTD->PDOR = 0x00008000;
printf("Green");
}
return 0;
}
Excuse me for the trivial question, but I'm a begginer with the embedded system.
I hope that someone could help me.
Thanks for your availability