initrialm48.h

来自「m48,8兆,smg12232带16*16汉字库点阵液晶屏驱动程序,有详细注视,」· C头文件 代码 · 共 33 行

H
33
字号
//ICC-AVR application builder : 2007-7-5 15:30:50
// Target : M48
// Crystal: 8.0000Mhz

void Port_Init(void);
void Init_Devices(void);


void Port_Init(void)
{
	PORTB = 0xFF;
	DDRB  = 0xFF;
	PORTC = 0x6F; //m103 output only
	DDRC  = 0x6F;
	PORTD = 0xFF;
	DDRD  = 0xFF;
}

//call this routine to initialize all peripherals
void Init_Devices(void)
{
	//stop errant interrupts until set up
	CLI(); //disable all interrupts
	Port_Init();


	SEI(); //re-enable interrupts
	//all peripherals are now initialized
}



⌨️ 快捷键说明

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