MediaTek-Labs / Arduino-Add-On-for-LinkIt-SDK

Arduino board support package for LinkIt 7697
https://docs.labs.mediatek.com/resource/linkit7697-arduino/en
34 stars 33 forks source link

avr/io.h lacked in FreeRTOS #104

Closed jackjeanab closed 5 years ago

jackjeanab commented 6 years ago

Error & Expected Results

Environment

error message as follow: Arduino: 1.8.5 (Windows 10), Board: "LinkIt 7697"

In file included from C:\Users\Jack\Documents\Arduino\libraries\FreeRTOS\src/Arduino_FreeRTOS.h:53:0,

             from C:\Users\Jack\Documents\Arduino\libraries\FreeRTOS\examples\AnalogRead_DigitalRead\AnalogRead_DigitalRead.ino:1:

C:\Users\Jack\Documents\Arduino\libraries\FreeRTOS\src/FreeRTOSConfig.h:32:20: fatal error: avr/io.h: No such file or directory

include <avr/io.h>

                ^

compilation terminated.

exit status 1 Error compiling for board LinkIt 7697.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

pablosun commented 6 years ago

因為MT7697並不是AVR架構而是ARM Cortex-M架構,所以是無法提供 avr/io 的,可能要請您自行檢查一下是為什麼會走到AVR那條路去。

另外,如果要用 FreeRTOS的 API 的話,LinkIt 7697 底層已經是用FreeRTOS了,應該不需要再從外部引入其他的FreeRTOS,這樣可能會造成名稱的衝突。

jackjeanab commented 6 years ago

收到 謝謝

Pablo Sun notifications@github.com 於 2018年8月22日週三 上午8:18 寫道:

因為MT7697並不是AVR架構而是ARM Cortex-M架構,所以是無法提供 avr/io 的,可能要請您自行檢查一下是為什麼會走到AVR那條路去。

另外,如果要用 FreeRTOS的 API 的話,LinkIt 7697 底層已經是用FreeRTOS了,應該不需要再從外部引入其他的FreeRTOS,這樣可能會造成名稱的衝突。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MediaTek-Labs/Arduino-Add-On-for-LinkIt-SDK/issues/104#issuecomment-414863829, or mute the thread https://github.com/notifications/unsubscribe-auth/AhiVg4IE9TP7k86AcV0Z-GLw3Hifm5Knks5uTKNkgaJpZM4V9g7n .