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

📄 common.c

📁 使用于克隆器
💻 C
字号:
/******************************************************************************
 Copyright (c) 2003 MStar Semiconductor, Inc.
 All rights reserved.

 [Module Name]: Common.c
 [Date]:        06-Nov-2003
 [Comment]:
   Common subroutines.
 [Reversion History]:
*******************************************************************************/

#define _COMMON_C_

// System

// Common
#include "define.h"
#include "mcu.h"
#include "global.h"

// External
#include "board.h"

// Internal
#include "common.h"
#include "uart.h"

/////////////////////////////////////////
// delay 1 millisecond.
//
// Arguments: wValue - delay counter
/////////////////////////////////////////
void Delay1ms(WORD wValue)
{
    WORD wCount; // loop counter

    while (wValue--)
    {
        wCount = DELAY_1MS_PERIOD; // reset loop counter
        while (wCount--) ;
    } // while
}

⌨️ 快捷键说明

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