diff options
Diffstat (limited to 'os/hal/templates')
-rw-r--r-- | os/hal/templates/pal_lld.h | 4 | ||||
-rw-r--r-- | os/hal/templates/uart_lld.h | 4 | ||||
-rw-r--r-- | os/hal/templates/wdg_lld.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/os/hal/templates/pal_lld.h b/os/hal/templates/pal_lld.h index 5b39648c2..59e5c0f2a 100644 --- a/os/hal/templates/pal_lld.h +++ b/os/hal/templates/pal_lld.h @@ -42,13 +42,13 @@ /**
* @brief Width, in bits, of an I/O port.
*/
-#define PAL_IOPORTS_WIDTH 16
+#define PAL_IOPORTS_WIDTH 16U
/**
* @brief Whole port mask.
* @details This macro specifies all the valid bits into a port.
*/
-#define PAL_WHOLE_PORT ((ioportmask_t)0xFFFF)
+#define PAL_WHOLE_PORT ((ioportmask_t)0xFFFFU)
/** @} */
/**
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h index 0451dcb21..d17b71a1a 100644 --- a/os/hal/templates/uart_lld.h +++ b/os/hal/templates/uart_lld.h @@ -143,7 +143,7 @@ struct UARTDriver { * @brief Current configuration data.
*/
const UARTConfig *config;
-#if UART_USE_WAIT || defined(__DOXYGEN__)
+#if (UART_USE_WAIT == TRUE) || defined(__DOXYGEN__)
/**
* @brief Synchronization flag for transmit operations.
*/
@@ -157,7 +157,7 @@ struct UARTDriver { */
thread_reference_t threadtx;
#endif /* UART_USE_WAIT */
-#if UART_USE_MUTUAL_EXCLUSION || defined(__DOXYGEN__)
+#if (UART_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__)
/**
* @brief Mutex protecting the peripheral.
*/
diff --git a/os/hal/templates/wdg_lld.h b/os/hal/templates/wdg_lld.h index d10af5add..7bb854778 100644 --- a/os/hal/templates/wdg_lld.h +++ b/os/hal/templates/wdg_lld.h @@ -25,7 +25,7 @@ #ifndef _WDG_LLD_H_
#define _WDG_LLD_H_
-#if HAL_USE_WDG || defined(__DOXYGEN__)
+#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -91,7 +91,7 @@ struct WDGDriver { /* External declarations. */
/*===========================================================================*/
-#if PLATFORM_WDG_USE_WDG1 && !defined(__DOXYGEN__)
+#if (PLATFORM_WDG_USE_WDG1 == TRUE) && !defined(__DOXYGEN__)
extern WDGDriver WDGD1;
#endif
@@ -106,7 +106,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_WDG */
+#endif /* HAL_USE_WDG == TRUE */
#endif /* _WDG_LLD_H_ */
|