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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2618|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

STM32鍵盤掃描無效這是什么問題啊,程序哪里錯了?

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:449881 發(fā)表于 2019-4-23 20:49 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
  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. }
復(fù)制代碼



*** 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


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:449881 發(fā)表于 2019-4-23 20:54 | 只看該作者
鍵盤掃描無效,為什么會出現(xiàn)這種情況?求解
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 久久电影一区 | 国产玖玖 | 欧美日韩久久久 | 女人天堂av | 一级片免费网站 | 久久精品国产99国产精品 | 国产精品一区二区三 | 国产精品成人一区二区三区夜夜夜 | 日韩精品在线观看一区二区 | 色在线免费 | www.天天干.com | caoporn免费在线视频 | 在线看片福利 | 妞干网av| 欧美国产精品一区二区三区 | 亚洲最大看片网站 | 中文字幕一区二区三区乱码图片 | 女同久久另类99精品国产 | 国产片一区二区三区 | 综合在线视频 | 碰碰视频 | 日韩视频在线免费观看 | 涩涩视频网 | 免费黄色a级毛片 | 亚洲视频在线一区 | 欧美亚洲高清 | 一区二区三区四区国产 | 色在线看 | 黄色片a级 | 韩国av网站在线观看 | 亚洲成人一区 | 日韩国产中文字幕 | 日韩av福利在线观看 | 国产99视频精品免费播放照片 | 亚洲精品福利视频 | 久久午夜国产精品www忘忧草 | 欧美视频1 | 国产黄色在线观看 | 成人精品久久久 | 欧美一区二区成人 | 国产午夜精品理论片a大结局 |