📄 timer.h
字号:
/**
* \addtogroup timer
* @{
*/
/**
* \file timer.h
* \brief Timers Functions Header File for L4MCU (Keil C Compiler).
* \author Guanglei Yin <Glyin@fameg.com>
*/
/*
******************************************************************************
*
Copyright (c) 2006 FameG Shanghai, Inc. All rights reserved.
*
This is unpublished proprietary source code of FameG Shanghai, Inc.
*
The copyright notice above does not evidence any actual or intended
*
publication of such source code.
******************************************************************************
*/
/*
******************************************************************************
*
Project: T4 L4MCU FPGA verification
*
Filename: timer.h
*
Date: 28/03/06
*
Purpose: timers functions for L4MCU (Keil C Compiler)
*
Author: Guanglei Yin
******************************************************************************
*/
#ifndef __TIMER_H__
#define __TIMER_H__
#include "kernel/system.h"
/*****************************************************************************
* CONSTANT DEFINES *
*****************************************************************************/
/*****************************************************************************
* MACROS *
*****************************************************************************/
/*****************************************************************************
* DATA TYPES *
*****************************************************************************/
/** Timer structure defination. */
struct timer_pool_t
{
UINT32 value; /**< Value of an in-used timer. */
UINT8 free; /**< Indicate a timer in pool free or not. */
};
/*****************************************************************************
* FUNCTIONS DECLARATION *
*****************************************************************************/
extern UINT8 get_timer(void); /* Get Timer from Timer Pool */
extern void free_timer(UINT8); /* Return Timer to Timer Pool */
extern void init_timer(UINT8,UINT32); /* Init timers timeout value */
extern void timer_pool_init(void); /* Init the pool when system starts */
extern UINT32 check_timer(UINT8); /* Return Timers value */
extern void decrement_timers(void); /* decrement all timers' values */
/*****************************************************************************
* GLOBAL VARIABLES DECLARATION *
*****************************************************************************/
#endif /*__TIMER_H__*/
/** @} */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -