mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2021 HAW Hamburg
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup pkg_driver_cryptocell_310
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Utility functions to setup and terminate the CryptoCell 310 driver
|
|
*
|
|
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
|
|
*
|
|
*/
|
|
#ifndef CRYPTOCELL_310_UTIL_H
|
|
#define CRYPTOCELL_310_UTIL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Enable CryptoCell module and IRQs.
|
|
*
|
|
* Must be called before using crypto functions.
|
|
* CryptoCell peripheral will be enabled after this call.
|
|
*/
|
|
void cryptocell_310_enable(void);
|
|
|
|
/**
|
|
* @brief Disable CryptoCell module and IRQs.
|
|
*
|
|
* Should be called after using crypto functions.
|
|
* CryptoCell peripheral will be disabled after this call.
|
|
*/
|
|
void cryptocell_310_disable(void);
|
|
|
|
/**
|
|
* @brief Enables CryptoCell module, IRQs and crypto libraries on nrf52840.
|
|
*
|
|
* Must be called once before using the CryptoCell lib.
|
|
*/
|
|
void driver_cryptocell_310_setup(void);
|
|
|
|
/**
|
|
* @brief Finishes the use of the CryptoCell library.
|
|
*
|
|
* Should be called after using the CryptoCell lib.
|
|
*/
|
|
void driver_cryptocell_310_terminate(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CRYPTOCELL_310_UTIL_H */
|
|
/** @} */
|