Wrapped with the halconf USE macro.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11000 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
isiora 2017-11-14 15:38:08 +00:00
parent e92cffa204
commit b23efdc7b3
4 changed files with 25 additions and 0 deletions

View File

@ -14,6 +14,9 @@
limitations under the License.
*/
#include "hal.h"
#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
#include "sama_crypto_lld.h"
void sama_aes_lld_write_key(const uint32_t * key, const uint32_t * vectors,
@ -251,3 +254,6 @@ cryerror_t sama_aes_lld_process_dma(CRYDriver *cryp, aesparams *params,
}
#endif /* HAL_USE_CRY */
/** @} */

View File

@ -14,6 +14,9 @@
limitations under the License.
*/
#include "hal.h"
#if HAL_USE_CRY || defined(__DOXYGEN__)
#include "sama_crypto_lld.h"
#define KEY0_BUFFER_SIZE_W HAL_CRY_MAX_KEY_SIZE/4
@ -191,3 +194,7 @@ static void crypto_lld_serve_write_interrupt(CRYDriver *cryp, uint32_t flags) {
}
#endif
#endif /* HAL_USE_CRY */
/** @} */

View File

@ -16,6 +16,8 @@
#ifndef SAMA_CRYPTO_LLD_H_
#define SAMA_CRYPTO_LLD_H_
#if HAL_USE_CRY || defined(__DOXYGEN__)
extern void samaCryptoDriverInit(CRYDriver *cryp);
extern void samaCryptoDriverStart(CRYDriver *cryp);
extern void samaCryptoDriverStop(CRYDriver *cryp);
@ -50,5 +52,8 @@ extern uint32_t key0_buffer[HAL_CRY_MAX_KEY_SIZE/4];
#include "sama_aes_lld.h"
#include "sama_tdes_lld.h"
#endif /* HAL_USE_CRY */
#endif //SAMA_CRYPTO_LLD_H_
/** @} */

View File

@ -14,6 +14,9 @@
limitations under the License.
*/
#include "hal.h"
#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
#include "sama_crypto_lld.h"
#include "sama_tdes_lld.h"
@ -255,3 +258,7 @@ cryerror_t sama_tdes_lld_dma(CRYDriver *cryp, tdes_config_t *params,
return CRY_NOERROR;
}
#endif /* HAL_USE_CRY */
/** @} */