diff options
Diffstat (limited to 'os/hal/include/hal_dac.h')
-rw-r--r-- | os/hal/include/hal_dac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/include/hal_dac.h b/os/hal/include/hal_dac.h index 403df4970..b3624dc07 100644 --- a/os/hal/include/hal_dac.h +++ b/os/hal/include/hal_dac.h @@ -158,18 +158,18 @@ struct hal_dac_driver { /**
* @brief Samples buffer size.
*/
- uint16_t depth;
+ size_t depth;
/**
* @brief Current configuration data.
*/
const DACConfig *config;
-#if DAC_USE_WAIT || defined(__DOXYGEN__)
+#if (DAC_USE_WAIT == TRUE) || defined(__DOXYGEN__)
/**
* @brief Waiting thread.
*/
thread_reference_t thread;
#endif /* DAC_USE_WAIT */
-#if DAC_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
+#if (DAC_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the bus.
*/
|