GeekIMU/2.Firmware/STM32/Firmware/sensor/time.h

40 lines
1.4 KiB
C
Raw Permalink Normal View History

2024-11-09 21:39:20 +08:00
/******************** (C) COPYRIGHT 2020 GEEKIMU *******************************
* File Name : time.h
* Current Version : V2.0
* Author : zhanli 719901725@qq.com
* Date of Issued : 2015.10.3
* Comments : TrackVR <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD> <EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
********************************************************************************/
#ifndef _TIME_H_
#define _TIME_H_
#include "stm32f10x.h"
/**----------------------------------------------------------------------
* Function : TIM3_Int_Init(u16 arr,u16 psc)
* Description : 1ms<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1000hz<EFBFBD>Ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD><EFBFBD><EFBFBD>
* Author : zhanli&719901725@qq.com
* Date : 2021/6/22 zhanli
*---------------------------------------------------------------------**/
void TIM3_Int_Init(uint16_t arr,uint16_t psc);
/**----------------------------------------------------------------------
* Function : SysTick_Init
* Description : <EFBFBD><EFBFBD>Ҫ<EFBFBD>dz<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>4
* Author : zhanli&719901725@qq.com
* Date : 2015/10/4 zhanli
*---------------------------------------------------------------------**/
void SysTick_Init(void);
/**----------------------------------------------------------------------
* Function : Get_NowTime(void)
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>AHRS<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0),<EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ǰsystick<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>ֵ,32λ
* Author : zhanli&719901725@qq.com
* Date : 2017/1/15 zhanli
*---------------------------------------------------------------------**/
float Get_NowTime(void);
#endif