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:
parent
e92cffa204
commit
b23efdc7b3
|
@ -14,6 +14,9 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
|
#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
#include "sama_crypto_lld.h"
|
#include "sama_crypto_lld.h"
|
||||||
|
|
||||||
void sama_aes_lld_write_key(const uint32_t * key, const uint32_t * vectors,
|
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 */
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
|
#if HAL_USE_CRY || defined(__DOXYGEN__)
|
||||||
|
|
||||||
#include "sama_crypto_lld.h"
|
#include "sama_crypto_lld.h"
|
||||||
|
|
||||||
#define KEY0_BUFFER_SIZE_W HAL_CRY_MAX_KEY_SIZE/4
|
#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
|
||||||
|
|
||||||
|
#endif /* HAL_USE_CRY */
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#ifndef SAMA_CRYPTO_LLD_H_
|
#ifndef SAMA_CRYPTO_LLD_H_
|
||||||
#define SAMA_CRYPTO_LLD_H_
|
#define SAMA_CRYPTO_LLD_H_
|
||||||
|
|
||||||
|
#if HAL_USE_CRY || defined(__DOXYGEN__)
|
||||||
|
|
||||||
extern void samaCryptoDriverInit(CRYDriver *cryp);
|
extern void samaCryptoDriverInit(CRYDriver *cryp);
|
||||||
extern void samaCryptoDriverStart(CRYDriver *cryp);
|
extern void samaCryptoDriverStart(CRYDriver *cryp);
|
||||||
extern void samaCryptoDriverStop(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_aes_lld.h"
|
||||||
#include "sama_tdes_lld.h"
|
#include "sama_tdes_lld.h"
|
||||||
|
|
||||||
|
#endif /* HAL_USE_CRY */
|
||||||
|
|
||||||
#endif //SAMA_CRYPTO_LLD_H_
|
#endif //SAMA_CRYPTO_LLD_H_
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
|
#if (HAL_USE_CRY == TRUE) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
#include "sama_crypto_lld.h"
|
#include "sama_crypto_lld.h"
|
||||||
#include "sama_tdes_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;
|
return CRY_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAL_USE_CRY */
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue