main.c

来自「DM642运行的demo程序。利用c语言开发。」· C语言 代码 · 共 42 行

C
42
字号
/*******************************************************************************
 * C H A M E L E O N    S. D. K.                                               *
 *******************************************************************************
 *  $Archive:: /Chameleon.sdk/src/examples/hello/main.c                        $
 *     $Date:: 18/02/02 11:53                                                  $
 * $Revision:: 6                                                               $
 *-----------------------------------------------------------------------------*
 * This file is part of the Chameleon Software Development Kit                 *
 *                                                                             *
 * Copyright (C) 2001-2002 Soundart                                            *
 * www.soundart-hot.com                                                        *
 * support@soundart-hot.com                                                    *
 ******************************************************************************/

#include <stdlib.h>
#include <stdio.h>
#include <rtems.h>
#include <chameleon.h>

/******************************************************************************/
#define WORKSPACE_SIZE	128*1024
rtems_unsigned32 rtems_workspace_size = WORKSPACE_SIZE;
rtems_unsigned32 rtems_workspace_start[WORKSPACE_SIZE];
/******************************************************************************/

rtems_task rtems_main(rtems_task_argument ignored)
{
	int panel;

	TRACE("Hello World\n");

	panel = panel_init();

	if (panel)
	{
		panel_out_lcd_print(panel, 0, 0, "HELLO           ");
		panel_out_lcd_print(panel, 1, 0, "WORLD           ");
	}

	rtems_task_delete(RTEMS_SELF);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?