coreboot-libre-fam15h-rdimm/3rdparty/chromeec/cts/timer/dut.c

31 lines
587 B
C
Raw Permalink Normal View History

2024-03-04 11:14:53 +01:00
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "common.h"
#include "cts_common.h"
#include "gpio.h"
#include "task.h"
#include "timer.h"
#include "watchdog.h"
static enum cts_rc timer_calibration_test(void)
{
gpio_set_flags(GPIO_OUTPUT_TEST, GPIO_ODR_HIGH);
sync();
sleep(1);
gpio_set_level(GPIO_OUTPUT_TEST, 0);
return CTS_RC_SUCCESS;
}
#include "cts_testlist.h"
void cts_task(void)
{
cts_main_loop(tests, "Timer");
task_wait_event(-1);
}