DBug12FNP->putchar(c);
C program to print Hello, world! to terminal
#include "DBug12.h" void main(void) { DBug12FNP->printf("Hello, world!\n\r"); }Output of above program:Hello, world!
Program to print a number to the terminal in three different formats:#include "DBug12.h" void main(void) { unsigned int i; i = 0xf000; DBug12FNP->printf("Hex: %4x, Unsigned: %u, Signed: %d\n\r",i,i,i); }Output of above program:Hex: f000, Unsigned: 61440, Signed: -4096