From 4f6a6abcfcc34760fd84fe6e47375ec2d45f0946 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 26 Jul 2016 09:59:16 +0000 Subject: Fixed bug #767. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9723 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h index cb35827b1..2f7d3cfb2 100644 --- a/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h +++ b/os/hal/ports/STM32/LLD/SDIOv1/hal_sdc_lld.h @@ -31,6 +31,26 @@ /* Driver constants. */ /*===========================================================================*/ +/* + * The following definitions are missing from some implementations, fixing + * as zeroed masks. + */ +#if !defined(SDIO_STA_STBITERR) +#define SDIO_STA_STBITERR 0 +#endif + +#if !defined(SDIO_ICR_STBITERRC) +#define SDIO_ICR_STBITERRC 0 +#endif + +#if !defined(SDIO_ICR_CEATAENDC) +#define SDIO_ICR_CEATAENDC 0 +#endif + +#if !defined(SDIO_MASK_STBITERRIE) +#define SDIO_MASK_STBITERRIE 0 +#endif + /** * @brief Value to clear all interrupts flag at once. */ -- cgit v1.2.3