📄 test.c
字号:
//ICC-AVR application builder : 2005-10-22 20:39:47
// Target : M88
// Crystal: 16.0000Mhz
#include "config.h"
#include "hanzi.h"
//------------------------------------------------------------------------------
void port_init(void)
{
PORTB = 0xFF;
DDRB = 0xFF;
PORTC = 0xFF; //m103 output only
DDRC = 0xFF;
PORTD = 0xFF;
DDRD = 0xFF;
}
void init_devices(void)
{
CLI(); //disable all interrupts
port_init();
MCUCR = 0x00;
EICRA = 0x00; //extended ext ints
EIMSK = 0x00;
TIMSK0 = 0x00; //timer 0 interrupt sources
TIMSK1 = 0x00; //timer 1 interrupt sources
TIMSK2 = 0x00; //timer 2 interrupt sources
PCMSK0 = 0x00; //pin change mask 0
PCMSK1 = 0x00; //pin change mask 1
PCMSK2 = 0x00; //pin change mask 2
PCICR = 0x00; //pin change enable
PRR = 0x00; //power controller
SEI(); //re-enable interrupts
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void main(void)
{
init_devices();
lcd_init();
lcd_clear(0xFF);
lcd_delay(500);
lcd_clear(0xAA);
lcd_delay(500);
lcd_print240128(ouravr);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -