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

📄 common.c

📁 最新版IAR FOR ARM(EWARM)5.11中的代码例子
💻 C
字号:
/******************************************************************************

     Copyright (C) 2005 Oki Electric Industry Co.,LTD.

     System Name  :  ML69Q6203 CPU Board
     Module Name  :  common module
     File   Name  :  common.c
     Revision     :  01.00
     Date         :  2005/03/06      First version

******************************************************************************/
#include "ML69Q6203.h"
#include "common.h"

/* count_intervale is a vraiable used by FIQ handler to increase count
   interval on the 7-seg LED display */
volatile unsigned int   count_interval = 20;


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

    return;
}
/*************************************************************************************************/
/*  LED init                                                                                     */
/*  Function : init_led                                                                          */
/*      Parameters                                                                               */
/*          Input   :   Nothing                                                                  */
/*          Output  :   Nothing                                                                  */
/*************************************************************************************************/
void init_led(void)
{
    put_hvalue(GPPME,0x00FF);   /* set output mode */

    return;
}

⌨️ 快捷键说明

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