AnsweredAssumed Answered

printf  with  void TERMIO_PutString(const char *p)      (mc9s12dp256)

Question asked by Hynek Prokop on Aug 25, 2009
Latest reply on Aug 26, 2009 by CrasyCat

Hi,

I am trying to use printf function. It works with “void TERMIO_PutChar(char ch);”, but I need whole string at once. So, I want to use this function: “void TERMIO_PutString(const char *p);”. It doesn’t work even I define this string: “_TERMIO_HAS_PUT_STRING_”.

The original function definition in TERMIO.h:


#ifdef _TERMIO_HAS_PUT_STRING_
  void TERMIO_PutString(const char *p);
#endif

I tried somethnig like this:


void TERMIO_PutString(const char *p){
  while(*p){
     vSCI0_send( (signed char) *p);
     p++;
  }
}

Thanks,

Excuse my English.

Outcomes