Example #1
0
main() {  
   
    printf("Hello world!\n\n" );
    printf("free mem=%d \n\n", _heapmemavail() );
    printf("float=%d\n", sizeof(float) );
    printf("long=%d\n", sizeof(long) );
    printf("double=%d\n", sizeof(double) );
    printf("int=%d\n", sizeof(int) );
    printf("short=%d\n", sizeof(short) );
    printf("char=%d\n", sizeof(char) );

    printf("\npress any key\n");
    (void) cgetc ();


}
/**
 * Print the number of free RAM bytes.
 * FREE
 */
void cmd_free(char *) {
  sprintf(print_buffer, "%u bytes free.\n", _heapmemavail());
  lcd_puts(print_buffer);
}