Trích:
Nguyên văn bởi pk178
|
Ko hiểu sao tui thử cái code của bạn với đoạn chương trình con giả lập bù vào phần thư viện còn thiếu của bạn... thì dịch ra chỉ thấy mấy warning thôi, chứ ko thấy error (cảnh báo là do các ngắt chồng chéo thôi!)
Code:
char ascii[10]={'0','1','2','3','4','5','6','7','8','9'};
void lcd_put_int(int dulieu)
{
lcd_putc(ascii[dulieu]);
}
int32 input_key()
{
return 1;
}
với cảnh báo sau
Code:
>>> Warning 216 "test1.c" Line 157(0,1): Interrupts disabled during call to prevent re-entrancy: (@delay_ms1)
>>> Warning 216 "test1.c" Line 157(0,1): Interrupts disabled during call to prevent re-entrancy: (lcd_send_nibble)
>>> Warning 216 "test1.c" Line 157(0,1): Interrupts disabled during call to prevent re-entrancy: (lcd_send_byte)
>>> Warning 216 "test1.c" Line 157(0,1): Interrupts disabled during call to prevent re-entrancy: (lcd_putc)
>>> Warning 216 "test1.c" Line 157(0,1): Interrupts disabled during call to prevent re-entrancy: (hien_thi_thong_so)
Memory usage: ROM=13% RAM=8% - 15%
0 Errors, 5 Warnings.
có lẽ, bạn thử xem lại phần <keypad_input.c> thử xem