/*******************************************************************************
 * (c) Copyright 2011 Microsemi Corporation.  All rights reserved. *
*  Sample test program for the SmartFusion UART.
 *  The UART_0 is used to send the data to the serial terminal program using "printf"
 *  Author: Sagar
 *  Last modified : November 18th, 2011
 *  modified by : Sathish D
 *  Tested with : SoftConsole v3.3
 *  Last modification : updated while Libero SoC IDE flow tutorial
 *******************************************************************************/
#include "mss_uart.h"
#include <stdio.h>

/* Main function */
int main()
{
	int i = 0, j = 8;

	/* printing Microsemi logo on the serial terminal using "printf" */
	printf ("\n\r \
**     **  *******   ******  *****    ****    *****  ******  **     **  ******* \n\r \
* *   * *     *     *        *    *  *    *  *       *       * *   * *     *    \n\r \
*  * *  *     *     *        *****   *    *   ****   ******  *  * *  *     *    \n\r \
*   *   *     *     *        *    *  *    *       *  *       *   *   *     *    \n\r \
*       *  *******   ******  *    *   ****   *****   ******  *       *  ******* \n\r"

	);


	/* printing greeting message on the serial terminal using "printf" */
	printf ("Welcome to SmartFusion customizable system-on-chip (cSoC)\n\r");

	/* printing 8 Table on UART */
	printf("Times 8 Table: \n\r");
	for(i = 0; i <= 10; i++)
	{
		printf("   %d x %d = %d\n\r", i, j, j*i);
	}

    while(1)
	{
	}
    return 0;
}
