/* * Copyright (C) 2018 SKF AB * * 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 Test application for the DS3234 RTC driver * * @author Joakim NohlgÄrd #include "board.h" #include "ds3234.h" #include "ds3234_params.h" #include "kernel_defines.h" int main(void) { puts("DS3234 RTC PPS test application\n"); for (unsigned k = 0; k < ARRAY_SIZE(ds3234_params); ++k) { printf("Init #%u... ", k); int res = ds3234_pps_init(&ds3234_params[k]); if (res == 0) { puts("[OK]"); } else { puts("[Failed]\n"); return 1; } } puts("DS3234 init done.\n"); puts("Check SQW pin on all connected DS3234 for a 1 Hz square wave signal\n"); while (1) { /* Spin */ } return 0; }