initial.c

来自「采用四端法测试欧姆电阻」· C语言 代码 · 共 33 行

C
33
字号
#ifndef _INITIAL_C_
#define _INITIAL_C_

#include "c8051f000.h"
#include "initial.h"
#include "control.h"

//-----------------------------------------------------------------------------
// Initialization Subroutines
//-----------------------------------------------------------------------------



//-----------------------------------------------------------------------------
// PORT_Init
//-----------------------------------------------------------------------------
//
// Configure the Crossbar and GPIO ports
//
void fPORT_Init (void)
{
	fTurnOffAllValve();
	XBR2 = 0x40;								// Enable crossbar and weak pull-ups

	PRT1CF |= 0xC0;								// enable Port as a push-pull output
 	PRT3CF |= 0x20;	
	PRT0CF |= 0xf0;	
}


#endif

⌨️ 快捷键说明

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