f2812_timer.h
来自「本驱动为DSP2812时钟驱动」· C头文件 代码 · 共 63 行
H
63 行
/********************************************************************************************************/
#ifndef __F2812_TIMERS_C__
#define __F2812_TIMERS_C__
#ifdef __cplusplus
extern "C" {
#endif
#include "DSP281x_Device.h" // DSP281x Headerfile Include File
#include "DSP281x_Examples.h" // DSP281x Examples Include File
typedef unsigned int uint16;
typedef unsigned char uint8;
typedef unsigned long uint32;
//typedef long double float64;
typedef struct timedelay
{
Uint16 tv_sec; /* seconds */
Uint16 tv_msec; /* microseconds */
Uint16 tv_usec;
}F2812Timer_Param,*F2812TimerPS_Param;
/*************************************************************************/
/************************F2812 驱动返回参数**************************/
/*************************************************************************/
/*****************F2812 控制常量、变量设置******************/
/*************************************************************************/
/************************ TIMER 函数调用定义**************************/
/*************************timer0***************************************/
void F2812_CpuTimer0Start(void);
void F2812_CpuTimer0Stop(void);
void F2812_CpuTimer0Reload(void);
void F2812_CpuTimer0Freeset(void);
void F2812_CpuTimer0Softset(void);
void F2812_CpuTimer0IntEN(void);
void F2812_CpuTimer0IntDIS(void);
void F2812_CpuTimer0IntFlagClr(void);
void F2812_CpuTimer0IntOpen(void);
void F2812_CpuTimer0IntClose(void);
void F2812_CpuTimer0PRDset(uint32 prdnum);
void F2812_CpuTimer0TPDset(uint32 tpdnum);
void F2812_CpuTimer0Intialize(void);
void F2812_ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float Period);
void F2812_Timerdelay(F2812TimerPS_Param timerdelay);
void F2812_PieCpuTimerVectinit(void);
interrupt void cpu_timer0_isr(void);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?