diff options
author | isiora <none@example.com> | 2017-11-14 15:46:33 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2017-11-14 15:46:33 +0000 |
commit | 25846dfc5d3f8b60d6bff973907af6647102d8c5 (patch) | |
tree | 4d86f45b549f9043a313a03a6897d4f80a0d055f | |
parent | b23efdc7b374e48646053d914f3d26540af93caf (diff) | |
download | ChibiOS-25846dfc5d3f8b60d6bff973907af6647102d8c5.tar.gz ChibiOS-25846dfc5d3f8b60d6bff973907af6647102d8c5.tar.bz2 ChibiOS-25846dfc5d3f8b60d6bff973907af6647102d8c5.zip |
Wrapped with the halconf USE macro.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11001 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c | 6 | ||||
-rw-r--r-- | os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c index 8d8a92009..79c4f3a3f 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c +++ b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.c @@ -24,7 +24,7 @@ #include <string.h>
#include "hal.h"
-#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
+#if HAL_USE_CRY || defined(__DOXYGEN__)
#include "sama_crypto_lld.h"
/*===========================================================================*/
@@ -1096,8 +1096,6 @@ cryerror_t cry_lld_decrypt_DES_CBC(CRYDriver *cryp, crykey_t key_id, return ret;
}
-
-
-#endif /* HAL_USE_CRY == TRUE */
+#endif /* HAL_USE_CRY */
/** @} */
diff --git a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h index 135ac600c..d9ef51f30 100644 --- a/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h +++ b/os/hal/ports/SAMA/SAMA5D2x/hal_crypto_lld.h @@ -25,7 +25,7 @@ #ifndef HAL_CRYPTO_LLD_H
#define HAL_CRYPTO_LLD_H
-#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
+#if HAL_USE_CRY || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -292,7 +292,7 @@ extern "C" { }
#endif
-#endif /* HAL_USE_CRY == TRUE */
+#endif /* HAL_USE_CRY */
#endif /* HAL_CRYPTO_LLD_H */
|