kendryte / kendryte-freertos-demo

Demo of kendryte k210 FreeRTOS SDK
https://github.com/kendryte/kendryte-freertos-sdk
64 stars 24 forks source link

driver.h not found in wdt #3

Closed manageryzy closed 5 years ago

manageryzy commented 5 years ago
[  3%] Built target fatfs
[  7%] Built target hal
[ 21%] Built target freertos
[ 45%] Built target bsp
[ 47%] Built target drivers
[ 48%] Building C object CMakeFiles/wdt.dir/mnt/c/tools/kendryte/kendryte/kendryte-freertos-demo/wdt/main.c.obj
/mnt/c/tools/kendryte/kendryte/kendryte-freertos-demo/wdt/main.c:18:10: fatal error: driver.h: No such file or directory
 #include <driver.h>
          ^~~~~~~~~~
compilation terminated.
CMakeFiles/wdt.dir/build.make:62: recipe for target 'CMakeFiles/wdt.dir/mnt/c/tools/kendryte/kendryte/kendryte-freertos-demo/wdt/main.c.obj' failed
make[2]: *** [CMakeFiles/wdt.dir/mnt/c/tools/kendryte/kendryte/kendryte-freertos-demo/wdt/main.c.obj] Error 1
CMakeFiles/Makefile2:71: recipe for target 'CMakeFiles/wdt.dir/all' failed
make[1]: *** [CMakeFiles/wdt.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
manageryzy commented 5 years ago

@sunnycase why hpp

vowstar commented 5 years ago

May should update all demos?

sunnycase commented 5 years ago

Some demos are not up-to-date and they will be soon.

sunnycase commented 5 years ago

For workaround you can remove this line. driver.h is not a public header file and should not be included.

sunnycase commented 5 years ago

Fixed in dfc19cd2307df25c6282f1184508fadaa5a1d73f.