From 57d31cabcfedbab69c74cde694f8fe1ec652385d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio <gdisirio@gmail.com> Date: Sat, 26 Jan 2019 08:32:07 +0000 Subject: MISRA-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12586 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/templates/hal_dac_lld.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'os/hal/templates/hal_dac_lld.h') diff --git a/os/hal/templates/hal_dac_lld.h b/os/hal/templates/hal_dac_lld.h index 12f2760c4..ab7b1872e 100644 --- a/os/hal/templates/hal_dac_lld.h +++ b/os/hal/templates/hal_dac_lld.h @@ -25,7 +25,7 @@ #ifndef HAL_DAC_LLD_H #define HAL_DAC_LLD_H -#if HAL_USE_DAC || defined(__DOXYGEN__) +#if (HAL_USE_DAC == TRUE) || defined(__DOXYGEN__) /*===========================================================================*/ /* Driver constants. */ @@ -89,7 +89,9 @@ typedef enum { /** * @brief Low level fields of the DAC driver structure. */ -#define dac_lld_driver_fields +#define dac_lld_driver_fields \ + /* Dummy field, it is not needed.*/ \ + uint32_t dummy /** * @brief Low level fields of the DAC configuration structure. @@ -101,13 +103,16 @@ typedef enum { /** * @brief Low level fields of the DAC group configuration structure. */ -#define dac_lld_conversion_group_fields +#define dac_lld_conversion_group_fields \ + /* Dummy configuration, it is not needed.*/ \ + uint32_t dummy + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ -#if PLATFORM_DAC_USE_DAC1 && !defined(__DOXYGEN__) +#if (PLATFORM_DAC_USE_DAC1 == TRUE) && !defined(__DOXYGEN__) extern DACDriver DACD1; #endif @@ -126,7 +131,7 @@ extern "C" { } #endif -#endif /* HAL_USE_DAC */ +#endif /* HAL_USE_DAC == TRUE */ #endif /* HAL_DAC_LLD_H */ -- cgit v1.2.3