common.c

来自「一些典型的阿arm嵌入式应用程序集锦!」· C语言 代码 · 共 28 行

C
28
字号
/**********************************************************************************/
/*                                                                                */
/*    Copyright (C) 2002 Oki Electric Industry Co., LTD.                          */
/*                                                                                */
/*    System Name    :  uPLAT series                                              */
/*    Module Name    :  common module                                             */
/*    File   Name    :  common.c                                                  */
/*    Revision       :  01.00                                                     */
/*    Date           :  2002/2/14 initial version                                 */
/*                                                                                */
/**********************************************************************************/
#include "ML674000.h"
#include "common.h"

/****************************************************************************/
/*  LED on                                                                  */
/*  Function : led_on                                                       */
/*      Parameters                                                          */
/*          Input   :   led pattern (cf. commn.h)                           */
/*          Output  :   Nothing                                             */
/****************************************************************************/
void led_on(UHWORD pattern)
{
    put_hvalue(GPPOB, pattern);

	return;
}

⌨️ 快捷键说明

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