资源简介
ccs3.3例程文件,更有助于你学习ccs3.3
代码片段和文件信息
// TI File $Revision: /main/3 $
// Checkin $Date: March 16 2007 08:37:30 $
//###########################################################################
//
// FILE: DSP2833x_CpuTimers.c
//
// title: CPU 32-bit Timers Initialization & Support Functions.
//
// NOTES: CpuTimer1 and CpuTimer2 are reserved for use with DSP BIOS and
// other realtime operating systems.
//
// Do not use these two timers in your application if you ever plan
// on integrating DSP-BIOS or another realtime OS.
//
//
//###########################################################################
// $TI Release: DSP2833x Header Files V1.01 $
// $Release Date: September 26 2007 $
//###########################################################################
#include “DSP2833x_Device.h“ // Headerfile Include File
#include “DSP2833x_Examples.h“ // Examples Include File
struct CPUTIMER_VARS CpuTimer0;
// CpuTimer 1 and CpuTimer2 are used by DSP BIOS & other RTOS. Comment out if using DSP BIOS or other RTOS.
struct CPUTIMER_VARS CpuTimer1;
struct CPUTIMER_VARS CpuTimer2;
//---------------------------------------------------------------------------
// InitCpuTimers:
//---------------------------------------------------------------------------
// This function initializes all three CPU timers to a known state.
//
void InitCpuTimers(void)
{
// CPU Timer 0
// Initialize address pointers to respective timer registers:
CpuTimer0.RegsAddr = &CpuTimer0Regs;
// Initialize timer period to maximum:
CpuTimer0Regs.PRD.all = 0xFFFFFFFF;
// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):
CpuTimer0Regs.TPR.all = 0;
CpuTimer0Regs.TPRH.all = 0;
// Make sure timer is stopped:
CpuTimer0Regs.TCR.bit.TSS = 1;
// Reload all counter register with period value:
CpuTimer0Regs.TCR.bit.TRB = 1;
// Reset interrupt counters:
CpuTimer0.InterruptCount = 0;
// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS
// Do not use these two timers if you ever plan on integrating
// DSP-BIOS or another realtime OS.
//
// Initialize address pointers to respective timer registers:
CpuTimer1.RegsAddr = &CpuTimer1Regs;
CpuTimer2.RegsAddr = &CpuTimer2Regs;
// Initialize timer period to maximum:
CpuTimer1Regs.PRD.all = 0xFFFFFFFF;
CpuTimer2Regs.PRD.all = 0xFFFFFFFF;
// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):
CpuTimer1Regs.TPR.all = 0;
CpuTimer1Regs.TPRH.all = 0;
CpuTimer2Regs.TPR.all = 0;
CpuTimer2Regs.TPRH.all = 0;
// Make sure timers are stopped:
CpuTimer1Regs.TCR.bit.TSS = 1;
CpuTimer2Regs.TCR.bit.TSS = 1;
// Reload all counter register with period value:
CpuTimer1Regs.TCR.bit.TRB = 1;
CpuTimer2Regs.TCR.bit.TRB = 1;
// Reset interrupt counters:
CpuTimer1.InterruptCount = 0;
CpuTimer2.InterruptCount = 0;
}
//---------------------------------------------------------------------------
// ConfigCpuTimer:
//-------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 203823 2014-12-30 14:34 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\28335Aprogrammer\A-flash-ram.out
....... 90 2012-11-22 13:53 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\28335Aprogrammer\说明.txt
文件 338 2015-04-08 10:46 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\DSP28335书籍教材购买.url
....... 508 2012-08-28 09:59 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\cc_build_Debug.log
....... 3947 2012-05-09 09:37 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\CMD\28335_RAM_lnk.cmd
....... 8438 2007-09-21 11:09 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\CMD\DSP2833x_Headers_nonBIOS.cmd
....... 4855 2008-09-24 00:54 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\CMD\F28335.cmd
....... 1112 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_ADC_cal.obj
....... 1391 2012-05-09 09:37 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_CodeStartBranch.obj
....... 113633 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_CpuTimers.obj
....... 154698 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_DefaultIsr.obj
....... 121822 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_GlobalVariableDefs.obj
....... 112529 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_PieCtrl.obj
....... 119432 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_PieVect.obj
....... 116890 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_SysCtrl.obj
....... 1123 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_usDelay.obj
....... 114537 2011-07-13 17:52 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\DSP2833x_Xintf.obj
....... 9169 2012-05-18 16:25 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\FFT.obj
....... 26042 2012-08-28 09:59 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\LED.map
....... 114531 2012-08-28 09:59 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\LED.obj
....... 154709 2012-08-28 09:59 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug\LED.out
....... 1455 2012-08-28 09:59 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\Debug.lkf
....... 10465 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_Adc.h
....... 5870 2011-03-04 11:12 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_CpuTimers.h
....... 6315 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_DefaultIsr.h
....... 2701 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_DevEmu.h
....... 5862 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_Device.h
....... 13320 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_DMA.h
....... 1993 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_Dma_defines.h
....... 45525 2007-09-26 10:23 CCS3.3例程(需拷贝到安装目录下的MyProject下,不能有中文路径)\lab1-GPIO_LED\INCLUDE\DSP2833x_ECan.h
............此处省略4587个文件信息
评论
共有 条评论