aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/hal_dac_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 08:32:07 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 08:32:07 +0000
commit57d31cabcfedbab69c74cde694f8fe1ec652385d (patch)
treefefaa32d234406c79aecfd43d69be09077797593 /os/hal/templates/hal_dac_lld.h
parent2c757aacd0569a7cf824513ec34e5ed976291597 (diff)
downloadChibiOS-57d31cabcfedbab69c74cde694f8fe1ec652385d.tar.gz
ChibiOS-57d31cabcfedbab69c74cde694f8fe1ec652385d.tar.bz2
ChibiOS-57d31cabcfedbab69c74cde694f8fe1ec652385d.zip
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12586 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/templates/hal_dac_lld.h')
-rw-r--r--os/hal/templates/hal_dac_lld.h15
1 files changed, 10 insertions, 5 deletions
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 */