From ff109ac9e64f0f107a21343cd82d603b04c35aaf Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 10 Feb 2018 11:25:29 +0000 Subject: MISRA-related changes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11473 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/hal_pal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/src/hal_pal.c') diff --git a/os/hal/src/hal_pal.c b/os/hal/src/hal_pal.c index c6f562c16..573ca2ff8 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 PAL_USE_CALLBACKS || defined(__DOXYGEN__) +#if (PAL_USE_CALLBACKS == TRUE) || defined(__DOXYGEN__) /** * @brief Associates a callback to a port/pad. * @@ -151,9 +151,9 @@ void palSetLineCallbackI(ioline_t line, palcallback_t cb, void *arg) { pep->cb = cb; pep->arg = arg; } -#endif /* PAL_USE_CALLBACKS */ +#endif /* PAL_USE_CALLBACKS == TRUE */ -#if PAL_USE_WAIT || defined(__DOXYGEN__) +#if (PAL_USE_WAIT == TRUE) || defined(__DOXYGEN__) /** * @brief Waits for an edge on the specified port/pad. * @@ -194,7 +194,7 @@ msg_t palWaitLineTimeoutS(ioline_t line, palevent_t *pep = pal_lld_get_line_event(line); return osalThreadEnqueueTimeoutS(&pep->threads, timeout); } -#endif /* PAL_USE_WAIT */ +#endif /* PAL_USE_WAIT == TRUE */ #endif /* HAL_USE_PAL == TRUE */ -- cgit v1.2.3