hal_timer.h
来自「非常全的nrf2401设计资料」· C头文件 代码 · 共 39 行
H
39 行
/* Copyright (c) 2007 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRENTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
* $LastChangedRevision: 2290 $
*/
/** @file
* A tick timer.
*
*/
#ifndef __HAL_TIMER_H__
#define __HAL_TIMER_H__
#include <stdint.h>
/**
* tn = timer[n], mode = timer mode [1 or 2], t = tick_time [ms for mode 1, 祍 for mode 2]
*/
void hal_timer_init(uint8_t tn, uint8_t n, uint16_t t);
/**
* tn = timer to start or stop, state = start[1] or stop[0]
*/
void hal_timer_state(uint8_t tn, uint8_t state);
/**
* time = multiply of t1 tick(), wait = stay or return before timeout, 1 = stay...
*/
void hal_timer_t1_delay(uint8_t time, uint8_t wait);
#endif // __HAL_TIMER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?