1/** 2 * \file 3 * \brief x86 legacy timer driver. 4 */ 5 6/* 7 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#ifndef TIMER_H 16#define TIMER_H 17 18#define TIMER_IRQ 0 19 20typedef void (*timer_handler_fn)(void); 21 22void timer_init_complete(void); 23errval_t lpc_timer_init(void); 24void lpc_timer_register_handler(timer_handler_fn handler); 25void lpc_timer_set(uint64_t us); 26uint64_t lpc_timer_read(void); 27 28#endif 29