/* Display command prompt for the user on the CLI at the beginning of the program.  */
int32_t cli_cmd_prompt(struct cli_desc *dev, uint8_t *app_name)
/* Display command prompt for the user on the CLI at the beginning of the program.  */
int32_t cli_cmd_prompt(struct cli_desc *dev, uint8_t *app_name)
{
	int32_t ret;
	static uint8_t count = 0;
	ret = cli_write_string(dev, (uint8_t*)"\n");
	if(count == 0) {
		cli_write_string(dev, (uint8_t*)
				 "INFO: Program start. Version 1.0.1: Device is connected. 0x");
		cli_write_string(dev, app_name);
		cli_write_string(dev, (uint8_t*)"\n");
		count++;
	}
	if(ret == 0)
		uart_write(dev->uart_device, (uint8_t *)">", 1);
	uart_line_index = 0;
	return ret;
}