1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg_cryptoauthlib_internal-tests/main.c

42 lines
803 B
C

/*
* 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 tests
* @{
*
* @file
* @brief Calls some of the unit tests from the CryptoAuth Library
*
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
*
* @}
*/
#include <stdio.h>
#include "cryptoauthlib_test.h"
int main(void)
{
/* Set device to ATECC508A */
if (ATCA_DEVTYPE == ATECC608A) {
atca_run_cmd("608");
}
else if (ATCA_DEVTYPE == ATECC508A) {
atca_run_cmd("508");
}
else {
printf("This device is currently not supported.");
return 0;
}
atca_run_cmd("unit");
return 0;
}