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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2712|回復: 1
打印 上一主題 下一主題
收起左側

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

[復制鏈接]
跳轉到指定樓層
樓主
ID:449881 發表于 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. }
復制代碼



*** 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空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

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

使用道具 舉報

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

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 密色视频 | 精品久久久久一区二区国产 | 国产精品片 | 成人在线网 | 日韩欧美中文字幕在线观看 | 成人免费视频网站在线观看 | 日韩精品在线播放 | 国产精品久久久久久久久久久久久 | 精品1区2区3区4区 | 国产成人精品免费视频大全最热 | 91视频网 | 一级黄色生活视频 | 精品久久一区 | 在线观看黄色电影 | 97超碰成人 | www精品| 免费观看黄a一级视频 | 亚洲欧美成人影院 | 在线观看 亚洲 | 在线日韩不卡 | 亚洲精品视频三区 | 国产一在线观看 | 91久久综合 | 久久久www成人免费无遮挡大片 | 精品日本久久久久久久久久 | 国产精品美女久久久久aⅴ国产馆 | 精品在线免费观看视频 | 欧美精品中文字幕久久二区 | 亚洲黄色av | 日韩高清一区 | 中文字幕视频一区 | 亚洲激情综合 | 久久另类| 不卡欧美 | 国产成人自拍一区 | 人人鲁人人莫人人爱精品 | 亚洲国产欧美国产综合一区 | 在线看av网址 | 成年免费大片黄在线观看岛国 | 日韩高清一区二区 | av天天干 |