summaryrefslogtreecommitdiff
path: root/cesar/hal/leon/inc/timer.h
blob: 29b8d66132e738951ac84bfbdbc90cfd04478c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef hal_leon_inc_timer_h
#define hal_leon_inc_timer_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    hal/leon/inc/timer.h
 * \brief   Hardware Abstact Layer for the Leon timer 2.
 * \ingroup hal_leon 
 *
 * Iterruptions functions for the Timer 2.
 */

#include <cyg/kernel/kapi.h>
#include <cyg/hal/drv_api.h>
#include <cyg/infra/diag.h>

/**
 * Interrupt service routine for interrupt timer2.
 *
 * \param  vector  interruption vector.
 * \param  data  data...
 */
cyg_uint32
leon_timer_interrupt_isr(
    cyg_vector_t vector,
    cyg_addrword_t data);

/**
 * Deferred service routine for interrupt timer2.
 *
 * \param  vector interruption
 * \param  count  ....
 * \param  data  ....
 */
void leon_timer_interrupt_dsr(
    cyg_vector_t vector,
    cyg_ucount32 count,
    cyg_addrword_t data);

#endif /* hal_leon_inc_timer_h */