We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I have cloned this repository as a submodule of my own repository to have a setup customized to my board.
The problem is that whenever I try to build this using make I get this message:
$ make CC main.c In file included from ../libopencm3/include/libopencm3/stm32/f1/rcc.h:705, from main.c:3: ../libopencm3/include/libopencm3/stm32/common/rcc_common_all.h:39:12: error: expected ';' before 'void' 39 | BEGIN_DECLS | ^ | ; 40 | 41 | void rcc_peripheral_enable_clock(volatile uint32_t *reg, uint32_t en); | ~~~~ ../libopencm3/include/libopencm3/stm32/common/rcc_common_all.h:77:10: error: expected ';' before 'enum' 77 | END_DECLS | ^ | ; ../libopencm3/include/libopencm3/stm32/f1/rcc.h:746:12: error: expected ';' before 'void' 746 | BEGIN_DECLS | ^ | ; 747 | 748 | void rcc_osc_ready_int_clear(enum rcc_osc osc); | ~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:776:6: warning: no previous prototype for 'rcc_clock_setup_in_hsi_ out_64mhz' [-Wmissing-prototypes] 776 | void rcc_clock_setup_in_hsi_out_64mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hsi_config s[RCC_CLOCK_HSI_64MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h: In function 'rcc_clock_setup_in_hsi_out_64mhz': ../libopencm3/include/libopencm3/stm32/f1/rcc.h:776:45: error: expected declaration specifiers before 'LIBOPENCM3_ DEPRECATED' 776 | void rcc_clock_setup_in_hsi_out_64mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hsi_config s[RCC_CLOCK_HSI_64MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:777:45: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 777 | void rcc_clock_setup_in_hsi_out_48mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hsi_config s[RCC_CLOCK_HSI_48MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:778:45: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 778 | void rcc_clock_setup_in_hsi_out_24mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hsi_config s[RCC_CLOCK_HSI_24MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:779:50: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 779 | void rcc_clock_setup_in_hse_8mhz_out_24mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hse_c onfigs[RCC_CLOCK_HSE8_24MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:780:50: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 780 | void rcc_clock_setup_in_hse_8mhz_out_72mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hse_c onfigs[RCC_CLOCK_HSE8_72MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:781:51: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 781 | void rcc_clock_setup_in_hse_12mhz_out_72mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hse_ configs[RCC_CLOCK_HSE12_72MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:782:51: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 782 | void rcc_clock_setup_in_hse_16mhz_out_72mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hse_ configs[RCC_CLOCK_HSE16_72MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:783:51: error: expected '=', ',', ';', 'asm' or 'attribute' be fore 'LIBOPENCM3_DEPRECATED' 783 | void rcc_clock_setup_in_hse_25mhz_out_72mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hse_ configs[RCC_CLOCK_HSE25_72MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:797:1: error: expected declaration specifiers before 'END_DECLS' 797 | END_DECLS | ^~~~~~~~~ main.c:6:28: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token 6 | static void rcc_setup(void){ | ^ main.c:11:29: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token 11 | static void gpio_setup(void){ | ^ main.c:15:16: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token 15 | int main(void) { | ^ ../libopencm3/include/libopencm3/stm32/f1/rcc.h:776:6: error: old-style parameter declarations in prototyped funct ion definition 776 | void rcc_clock_setup_in_hsi_out_64mhz(void) LIBOPENCM3_DEPRECATED("use rcc_clock_setup_pll(&rcc_hsi_config s[RCC_CLOCK_HSI_64MHZ])"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:27: error: expected '{' at end of input make: *** [../rules.mk:131: bin/main.o] Error 1
However, I have tried running the examples from the example repo without trouble.
The only change I made was renaming the my-project.c file to main.c and updating the Makefile accordingly
I hope you can point me in the right direction.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I have cloned this repository as a submodule of my own repository to have a setup customized to my board.
The problem is that whenever I try to build this using make I get this message:
However, I have tried running the examples from the example repo without trouble.
The only change I made was renaming the my-project.c file to main.c and updating the Makefile accordingly
I hope you can point me in the right direction.
The text was updated successfully, but these errors were encountered: