common.c

来自「使用于克隆器」· C语言 代码 · 共 44 行

C
44
字号
/******************************************************************************
 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 + =
减小字号Ctrl + -
显示快捷键?