diff options
Diffstat (limited to 'os/hal/include/serial_usb.h')
-rw-r--r-- | os/hal/include/serial_usb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/include/serial_usb.h b/os/hal/include/serial_usb.h index a34710e6c..9d31bdd10 100644 --- a/os/hal/include/serial_usb.h +++ b/os/hal/include/serial_usb.h @@ -28,7 +28,7 @@ #ifndef _SERIAL_USB_H_
#define _SERIAL_USB_H_
-#if HAL_USE_SERIAL_USB || defined(__DOXYGEN__)
+#if (HAL_USE_SERIAL_USB == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -130,7 +130,7 @@ /* Derived constants and error checks. */
/*===========================================================================*/
-#if !HAL_USE_USB
+#if HAL_USE_USB == FALSE
#error "Serial over USB Driver requires HAL_USE_USB"
#endif
@@ -245,7 +245,7 @@ struct SerialUSBDriver { extern "C" {
#endif
void sduInit(void);
- void sduObjectInit(SerialUSBDriver *sdp);
+ void sduObjectInit(SerialUSBDriver *sdup);
void sduStart(SerialUSBDriver *sdup, const SerialUSBConfig *config);
void sduStop(SerialUSBDriver *sdup);
void sduConfigureHookI(SerialUSBDriver *sdup);
@@ -257,7 +257,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_SERIAL_USB */
+#endif /* HAL_USE_SERIAL_USB == TRUE */
#endif /* _SERIAL_USB_H_ */
|