📄 initrialm48._h
字号:
//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();
Init_ADC();
SEI(); //re-enable interrupts
//all peripherals are now initialized
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -