📄 test.lst
字号:
C51 COMPILER V7.06 TEST 08/18/2005 15:30:31 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE TEST
OBJECT MODULE PLACED IN Test.OBJ
COMPILER INVOKED BY: d:\Keil777\C51\BIN\C51.EXE Test.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1
2 #include <unistd.h>
*** WARNING C318 IN LINE 2 OF Test.c: can't open file 'unistd.h'
3 #include <stdio.h>
4 #include "system.h"
5 #include "basic_io.h"
*** WARNING C318 IN LINE 4 OF basic_io.h: can't open file 'io.h'
6 #include "LCD.h"
7 #include "Open_I2C.h"
8 #include "sys/alt_irq.h"
*** WARNING C318 IN LINE 8 OF Test.c: can't open file 'sys/alt_irq.h'
9 #include "Test.h"
10
11 //-------------------------------------------------------------------------
12 void handle_button_interrupts()
13 {
14 1 outport(LED_GREEN_BASE,get_pio_edge_cap(BUTTON_PIO_BASE)*get_pio_edge_cap(BUTTON_PIO_BASE));
*** WARNING C206 IN LINE 14 OF TEST.C: 'IOWR': missing function-prototype
*** ERROR C267 IN LINE 14 OF TEST.C: 'IOWR': requires ANSI-style prototype
15 1 set_pio_edge_cap(BUTTON_PIO_BASE,0x0);
16 1 usleep(BUTTON_STOP_TIME);
17 1 outport(LED_GREEN_BASE,LED_GREEN_VALUE);
18 1 }
19 //-------------------------------------------------------------------------
20 void init_button_irq()
21 {
22 1 /* Enable all 4 button interrupts. */
23 1 set_pio_irq_mask(BUTTON_PIO_BASE, BUTTON_INT_MASK);
24 1 /* Reset the edge capture register. */
25 1 set_pio_edge_cap(BUTTON_PIO_BASE, 0x0);
26 1 /* Register the interrupt handler. */
27 1 alt_irq_register( BUTTON_PIO_IRQ, NULL, (void*)handle_button_interrupts );
28 1 }
29 //-------------------------------------------------------------------------
30 void basic_test()
31 {
32 1 // Show LCD Test Text
33 1 LCD_Test();
34 1
35 1 // Refresh LED
36 1 outport(LED_GREEN_BASE,LED_GREEN_VALUE);
37 1 outport(LED_RED_BASE,LED_RED_VALUE);
38 1 // Refresh SEG7
39 1 seg7_show(SEG7_DISPLAY_BASE,SEG7_VALUE);
40 1
41 1 // I2C Core Initial & Set Freq = 100 Khz
42 1 I2C_Init(10000000/I2C_FREQ-1);
43 1
44 1 // Check Video Encoder on I2C Bus, Address = 0x40
45 1 if(I2C_Send(0x40,1,1))
46 1 printf("\nFind Video Encoder on I2C Bus, Address = 0x40.\n");
47 1 else
48 1 printf("\nCan't Find Video Encoder on I2C Bus.\n");
49 1
50 1 // Check Audio CODEC on I2C Bus, Address = 0x34
C51 COMPILER V7.06 TEST 08/18/2005 15:30:31 PAGE 2
51 1 if(I2C_Send(0x34,1,1))
52 1 printf("\nFind Audio CODEC on I2C Bus, Address = 0x34.\n");
53 1 else
54 1 printf("\nCan't Find Audio CODEC on I2C Bus.\n");
55 1
56 1 // Set Button PIO Interrupts
57 1 init_button_irq();
58 1 }
59 //-------------------------------------------------------------------------
C51 COMPILATION COMPLETE. 4 WARNING(S), 1 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -