From 8064f6d0cbaca9719c25ee74af115f90deb2b3a0 Mon Sep 17 00:00:00 2001 From: ALeX Kazik Date: Tue, 22 Jan 2019 18:12:14 +0100 Subject: [PATCH] stm32f4: fmc: add missing DECLS wrappers Function prototypes need DECLS wrappers for inclusion in c++/asm --- include/libopencm3/stm32/f4/fmc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/libopencm3/stm32/f4/fmc.h b/include/libopencm3/stm32/f4/fmc.h index fda08f6d..9d0e7beb 100644 --- a/include/libopencm3/stm32/f4/fmc.h +++ b/include/libopencm3/stm32/f4/fmc.h @@ -243,7 +243,12 @@ enum fmc_sdram_command { SDRAM_CLK_CONF, SDRAM_NORMAL, SDRAM_PALL, /* Send an array of timing parameters (indices above) to create SDTR register * value */ +BEGIN_DECLS + uint32_t sdram_timing(struct sdram_timing *t); void sdram_command(enum fmc_sdram_bank bank, enum fmc_sdram_command cmd, int autorefresh, int modereg); + +END_DECLS + #endif