📄 initial.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -