⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hwnosemi.c

📁 sharp的arm920t 7A400的评估板附带光盘Sharp KEVLH7A400 v0.3b Welcome to the SHARP KEV7A400 Evaluation board
💻 C
字号:
 /*****************************************************************************
 *	$Workfile:   Hwnosemi.c  $
 *	$Revision:   1.0  $
 *	$Author:   WellsK  $
 *	$Date:   Sep 22 2002 10:59:52  $
 *
 *	Project: Simple Hello world demo (no semihosting)
 *
 *	Description:
 *    Prints the words "Welcome to the Sharp LH7A400 EVB!!" in a window on the
 *    EVB display using the SWIM library.
 * *
 *	Revision History:
 *	$Log:   //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Examples/Hwnosemi/Hwnosemi.c-arc  $
 * 
 *    Rev 1.0   Sep 22 2002 10:59:52   WellsK
 * Initial revision.
 * 
 * 
 *	COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *		CAMAS, WA
 ****************************************************************************/

#include "SMA_colors.h"
#include "SMA_types.h"
#include "SMA_swim.h"
#include "SMA_swim_font.h"
#include "SMA_lcd_driver.h"
#include "LH7A400_lcd_private.h"
#include "KEV7A400_LQ039Q2DS53.h"
#include "LH7A400_cp15_driver.h"

// Physical and logical addresses of frame buffer
#define FBPHY (color_type *) 0xDD000000
#define FBLOG (color_type *) 0x03C00000

int main (void)
{
    INT_32 maxx, maxy;
    INT_32 win;

    // Init LCD driver for '53 display
    lcd_initialize (&KEV7A400_LQ039Q2DS53, FBPHY);

    // Get horiz and vert size of display from driver
    maxx = (INT_32) lcd_get_xsize ();
    maxy = (INT_32) lcd_get_ysize ();

    // Enable the LCD power and LCD signal buffers
    lcd_disable_enable (1);

    // Turn on the LCD backlight to full brightness
    lcd_set_backlight_intens (lcd_get_max_intens ());

    // Setup SWIM window
    win = swim_window_open (maxx, maxy, FBLOG, 0, 0, (maxx - 1),
        (maxy - 1), 1, WHITE, BLACK, WHITE, 1);

    swim_set_pen_color (win, RED);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    swim_set_pen_color (win, GREEN);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    swim_set_pen_color (win, BLUE);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    swim_set_pen_color (win, MAGENTA);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    swim_set_pen_color (win, CYAN);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    swim_set_pen_color (win, YELLOW);
    swim_put_text (win, "Welcome to the Sharp KEV7A400 EVB!!\n");
    
    return 1;
 }
 

⌨️ 快捷键说明

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