diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/include/hal_pal.h | 16 | ||||
-rw-r--r-- | os/hal/src/hal_pal.c | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/include/hal_pal.h b/os/hal/include/hal_pal.h index f19c8396f..a0ef91b37 100644 --- a/os/hal/include/hal_pal.h +++ b/os/hal/include/hal_pal.h @@ -143,7 +143,7 @@ typedef void (*palcallback_t)(void *arg); * @brief Type of a PAL event record.
*/
typedef struct {
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
/**
* @brief Threads queued for an event.
*/
@@ -248,7 +248,7 @@ typedef struct { *
* @notapi
*/
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
#define _pal_isr_code(e) do { \
if (_pal_events[e].cb != NULL) { \
_pal_events[e].cb(_pal_events[e].arg); \
@@ -276,7 +276,7 @@ typedef struct { *
* @notapi
*/
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
#define _pal_set_event(e, c, a) { \
osalThreadQueueObjectInit(&_pal_events[e].threads); \
_pal_events[e].cb = c; \
@@ -298,7 +298,7 @@ typedef struct { *
* @notapi
*/
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
#define _pal_clear_event(e) { \
osalThreadDequeueAllI(&_pal_events[e].threads, MSG_RESET); \
_pal_events[e].cb = NULL; \
@@ -873,7 +873,7 @@ typedef struct { osalSysUnlock(); \
} while (false)
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
/**
* @brief Waits for an edge on the specified port/pad.
*
@@ -915,7 +915,7 @@ typedef struct { osalSysUnlock(); \
} while (false)
-#endif /* defined(PAL_USE_WAIT) */
+#endif /* PAL_USE_WAIT */
/** @} */
@@ -929,10 +929,10 @@ extern "C" { ioportmask_t palReadBus(IOBus *bus);
void palWriteBus(IOBus *bus, ioportmask_t bits);
void palSetBusMode(IOBus *bus, iomode_t mode);
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
msg_t palWaitPadTimeoutS(ioportid_t port, iopadid_t pad, systime_t timeout);
msg_t palWaitLineTimeoutS(ioline_t line, systime_t timeout);
-#endif /* defined(PAL_USE_WAIT) */
+#endif /* PAL_USE_WAIT */
#ifdef __cplusplus
}
#endif
diff --git a/os/hal/src/hal_pal.c b/os/hal/src/hal_pal.c index 850c3506b..12b06abd0 100644 --- a/os/hal/src/hal_pal.c +++ b/os/hal/src/hal_pal.c @@ -117,7 +117,7 @@ void palSetBusMode(IOBus *bus, iomode_t mode) { palSetGroupMode(bus->portid, bus->mask, bus->offset, mode);
}
-#if defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
+#if PAL_USE_WAIT || defined(__DOXYGEN__)
/**
* @brief Waits for an edge on the specified port/pad.
*
@@ -155,7 +155,7 @@ msg_t palWaitLineTimeoutS(ioline_t line, systime_t timeout) { palevent_t *pep = pal_lld_get_line_event(line);
return osalThreadEnqueueTimeoutS(&pep->threads, timeout);
}
-#endif /* defined(PAL_USE_WAIT) */
+#endif /* PAL_USE_WAIT */
#endif /* HAL_USE_PAL == TRUE */
|