如何才能支持這兩個頭文件

發布於 2024-06-18 13:44:24

請問如何才能讓w806支持#include <libmaple/pwr.h>

include <libmaple/scb.h>這兩個頭文件?? 這是在STM32中使用的,我是新手,不知道怎麼弄,所以才來求助,希望大佬能答疑解惑。

查看更多

關注者
0
被浏覽
996
2 個回答
abcd
abcd 認證專家 2024-06-18
我只是個路過的老年人~

1、確認下是否用到了這兩個頭文件裡的接口或者定義,如果沒用到直接刪除引用頭文件即可,或者直接刪除看是否能編譯通過。
2、在第一步確認的基礎上,確實用到了這兩個頭文件,那需要有這兩個.h的源文件,剩下的操作就和stm32用keil編譯一樣了,在CDK裡左邊的工程處,右鍵add這兩個頭文件到工程裡,在工程設置裡把頭文件的的路徑添加上。就可以了。

AnatolSher
AnatolSher 認證專家 2024-06-20
Lover of the ocean, yachts and Arduino

Hello newbie! When adapting code for STM32 to use on the W806, you need to understand the differences in the hardware of these controllers. That is, the code can be divided into two parts - hardware dependent and hardware independent. You must rework the hardware-dependent part in relation to the features of the W806.
You may not need STM32-specific header files

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽