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

Serial.c file in the Blinky example

Hi,

What exactly is the purpose for the functions in the file Serial.c (putchar(), getchar()) included w/ the Blinky example? Does the Keil C not have these itself? Or for that matter, the delay() function in Blinky.c uses printf directly, which works fine. Are these for illustrative purpose only?

Confused -

Todd

Parents
  • Stefan,

    So in this case, when printf is called, it uses the putchar included in the project, right?

    I somewhat knew this was the case, but I was expecting that there would have to be some sort of explicit linking to have the printf pick up the putchar in the project - I guess that happens automatically?

    Thanks -

    Todd

Reply
  • Stefan,

    So in this case, when printf is called, it uses the putchar included in the project, right?

    I somewhat knew this was the case, but I was expecting that there would have to be some sort of explicit linking to have the printf pick up the putchar in the project - I guess that happens automatically?

    Thanks -

    Todd

Children