久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

標題: STM32鍵盤掃描無效這是什么問題啊,程序哪里錯了? [打印本頁]

作者: 陳XS    時間: 2019-4-23 20:49
標題: STM32鍵盤掃描無效這是什么問題啊,程序哪里錯了?
  1. #include "stm32f10x.h"
  2. #include "led.h"
  3. #include "delay.h"
  4. #include "key.h"
  5. #include "sys.h"
  6. #include "beep.h"
  7. int main(void)
  8. {
  9.         u8 key;
  10. delay_init();
  11. LED_Init();
  12. KEY_Init();
  13. BEEP_Init();
  14. LED0=0;
  15. while(1)
  16. {
  17. key =KEY_Scan(0);
  18.           if(KEY1==0)
  19.                 {      
  20.                         while(1)
  21.                         {
  22.                                 BEEP=1;
  23.                                 LED1=1;
  24.                                 if(BEEP==1)
  25.                                 {
  26.                                         LED0=1-LED0;
  27.                                         delay_ms(300);
  28.                                         key=KEY_Scan(0);        //
  29.                                         if(KEY0==0)
  30.                                         {
  31.                                                 BEEP=0;
  32.                                                 break;
  33.                                         }
  34.                                 }
  35.                         }


  36.                 }
  37.                 if(KEY0==0)
  38.                 {
  39.                         LED1=0;     //LED1
  40.                         LED0=1;     //LED0
  41.                         BEEP=0;
  42.                 }
  43.                 else delay_ms(20);
  44.         }               
  45. }
復制代碼



*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'F:\91UserData\qianrushi\ARM\ARMCC\Bin'
Rebuild target 'Target 1'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling main.c...
main.c(17): warning:  #223-D: function "KEY_Scan" declared implicitly
  key =KEY_Scan(0);
main.c(9): warning:  #550-D: variable "key"  was set but never used
          u8 key;
main.c: 2 warnings, 0 errors
compiling stm32f10x_it.c...
compiling system_stm32f10x.c...
compiling stm32f10x_wwdg.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_can.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_adc.c...
compiling misc.c...
compiling usart.c...
..\SYSTEM\usart\usart.c(48): warning:  #260-D: explicit type is missing ("int" assumed)
  _sysexit(int x)
..\SYSTEM\usart\usart.c: 1 warning, 0 errors
compiling delay.c...
compiling sys.c...
compiling beep.c...
..\HARDWARE\beep\beep.c(13): warning:  #1-D: last line of file ends without a newline
         
..\HARDWARE\beep\beep.c: 1 warning, 0 errors
compiling led.c...
compiling key.c...
linking...
..\beep.axf: Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_exit was referenced
Not enough information to list load addresses in the image map.
Finished: 1 information, 0 warning and 1 error messages.
"..\beep.axf" - 1 Error(s), 4 Warning(s).
Target not created.
Build Time Elapsed:  00:00:09



作者: 陳XS    時間: 2019-4-23 20:54
鍵盤掃描無效,為什么會出現這種情況?求解




歡迎光臨 (http://www.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: 国产高清毛片 | 国产精品视频一区二区三区 | 亚洲国产成人精品女人久久久 | 国产日韩欧美激情 | 色综合久久天天综合网 | 欧美a v在线| 色片在线观看 | 欧美日韩国产一区二区 | 亚洲国产成人精品女人久久久 | 国产在线一区二区 | 亚洲一区二区三区四区五区午夜 | 日韩在线观看视频一区 | 亚洲传媒在线 | 成人国产精品 | 国产欧美精品区一区二区三区 | 久久久久久亚洲 | 精品毛片 | 国产欧美久久精品 | 久久久免费| 欧美啪啪网站 | 国产一区二区三区在线看 | 最新国产视频 | 精品久久久一区 | 91在线精品视频 | 亚洲最大看片网站 | 国产日韩视频在线 | 在线免费观看a级片 | 一区二区在线 | 麻豆久久| 人碰人操 | 日韩欧美三区 | 男人天堂av网站 | 亚洲免费在线视频 | 色婷婷av一区二区三区软件 | 91久久国产精品 | 亚洲精品在线免费 | 一级片在线视频 | 国产精品视频久久 | 99精品视频一区二区三区 | 亚洲欧美在线观看 | 国产日韩欧美精品 |