stmwin_touch_usb 加上ADC功能

2019-07-20 11:27发布

本帖最后由 farmer30175 于 2017-10-16 08:56 编辑

大家早安
小弟的板子是stm32f7 with touch panel(1024*600 TSC)
這裡先謝謝大大的support從單純的LCD到touch LCD也花了一點時間

附件上有加入ADC但沒有功能
只有touch的功能

拿了正點原子的example(stemwin_touch_usb)下去做觸摸屏的控制,寫了很多的分頁與按鈕
(path: ... .../Code/STM32Cube_FW_F7_V1.4.0/Projects/STM32F7xx_EVAL/Applications/STemWIN/)  檔案放在此執行

現在需要再將外部的值讀取進來想要做ADC的功能
所以匯入了HAL的library下去編寫(寫在main.c裡面)

寫完編譯後發現都不會動
單步執行發現最後位置都在gui_x.c裡面執行

有試著將此行放到gui_x.c執行,
   "ADCxConvertedValue = HAL_ADC_GetValue(&hadc3);"

會出現讀不到在main.c的一些設定
   "  undeclared identifier 'ADCxConvertedValue'  "
   "   undeclared identifier 'hadc3'  "
   "   implicit declaration of function 'HAL_ADC_GetValue' is invlid in C99  "

可否有大神開示一下   

謝謝平台  補上了百度的鏈結



file: https://drive.google.com/open?id=0B2zHaIpPsYn-NTdrVDFMaG9pXzQ
百度網盤: http://pan.baidu.com/s/1eSzVMYQ     密碼: 3nbw




友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。