dsp28_initperipherals.c

来自「F2812实现电机控制源程序.rar」· C语言 代码 · 共 26 行

C
26
字号

#include "DSP28_Device.h"

//---------------------------------------------------------------------------
// InitPeripherals:
//---------------------------------------------------------------------------
// The following function initializes the peripherals to a default state.
// It calls each of the peripherals default initialization functions.
// This function should be executed at boot time or on a soft reset.
//

void InitPeripherals(void)
{
    // Initialize External Interface To default State:
	   InitXintf();
	   
    // Initialize GPIO To default State:
    
	   InitGpio();//对与本实验,这句没有也可以
	
	// Initialize CPU Timers To default State:
	
	   InitCpuTimers();

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?