/* * Copyright (C) 2019 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_cryptoauthlib * @{ * * @file * * @author Lena Boeckmann * */ #ifndef CRYPTOAUTHLIB_TEST_H #define CRYPTOAUTHLIB_TEST_H #ifdef __cplusplus extern "C" { #endif #include "cryptoauthlib.h" #include "atca.h" #include "atca_params.h" /** * @brief Helper function to use the library's unittests * This function is defined in the cryptoauth library via patch. * It is used to pass commands to run built-in unit tests of the library. */ int atca_run_cmd(const char *command); /** * @brief Function switches the default cfg in cryptoauthlib test to RIOT cfg */ void riot_switch_cfg(ATCAIfaceCfg *cfg) { *cfg = atca_params[0]; } #ifdef __cplusplus } #endif #endif /* CRYPTOAUTHLIB_TEST_H */ /** @} */