blob: aba63093d3d4d0ce9869dbb7d63d9c4694e5e1db [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2008 Travis Geiselbrecht
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
#include <zircon/compiler.h>
#include <zircon/types.h>
typedef void (*platform_timer_callback)(zx_time_t now);
// API to set/clear a hardware timer that is responsible for calling timer_tick() when it fires
zx_status_t platform_set_oneshot_timer(zx_time_t deadline);
void platform_stop_timer(void);
// Shutdown the calling CPU's platform timer.
// Should be called after |platform_stop_timer|, but before taking the CPU offline.
// TODO(maniscalco): Provide a "resume" function so we can suspend/resume.
void platform_shutdown_timer(void);
void timer_tick(zx_time_t now);