When trying to build with this simple patch, I am having a strange error:
In file included from lib/libopencm3/include/libopencm3/stm32/f1/gpio.h:39,
from main/target/platforms/stm32/main.c:2:
lib/libopencm3/include/libopencm3/stm32/common/gpio_common_all.h:72:12: error: expected ';' before 'void'
BEGIN_DECLS
^
;
Simply removing the DECLS macros resolves the issue.
I do not have any problem building libopencm3-examples, and the error remains in raven after pulling in libopencm3 master. This leads me to believe this is some problem with raven.
This script demonstrate the issue and the results can be seen here.
You need to include <libopencm3/stm32/gpio.h> instead of <libopencm3/stm32/f1/gpio.h>. Generally, in libopencm3 you include the family header and the subfamily is provided via CFLAGS.
When trying to build with this simple patch, I am having a strange error:
Simply removing the DECLS macros resolves the issue.
I do not have any problem building libopencm3-examples, and the error remains in raven after pulling in libopencm3 master. This leads me to believe this is some problem with raven.
This script demonstrate the issue and the results can be seen here.