source: soft/giet_vm/giet_drivers/tim_driver.h @ 421

Last change on this file since 421 was 295, checked in by alain, 11 years ago

Introducing a major release, to suppoort the tsar_generic_leti platform
and the various (external or internal) peripherals configurations.
The map.xml format has been modified, in order to support the new
vci_iopic componentand a new policy for peripherals initialisation.
The IRQs are nom described in the XICU and IOPIC components
(and not anymore in the processors).
To enforce this major change, the map.xml file signature changed:
The signature value must be: 0xDACE2014

This new release has been tested on the tsar_generic_leti platform
for the following mappings:

  • 4c_4p_sort_leti
  • 4c_4p_sort_leti_ext
  • 4c_4p_transpose_leti
  • 4c_4p_transpose_leti_ext
  • 4c_1p_four_leti_ext
File size: 1.8 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : tim_driver.h
3// Date     : 01/11/2013
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _GIET_TIM_DRIVER_H_
9#define _GIET_TIM_DRIVER_H_
10
11///////////////////////////////////////////////////////////////////////////////////
12// TIMER (vci_multi_timer) registers offsets
13///////////////////////////////////////////////////////////////////////////////////
14
15enum TIMER_registers
16{
17    TIMER_VALUE     = 0,
18    TIMER_MODE      = 1,
19    TIMER_PERIOD    = 2,
20    TIMER_RESETIRQ  = 3,
21    /**/
22    TIMER_SPAN      = 4,
23};
24
25///////////////////////////////////////////////////////////////////////////////////
26// Timer access functions and global variables
27///////////////////////////////////////////////////////////////////////////////////
28
29extern void _timer_start( unsigned int cluster_xy, 
30                          unsigned int local_id, 
31                          unsigned int period );
32
33extern void _timer_stop( unsigned int cluster_xy,
34                         unsigned int local_id );
35
36extern void _timer_reset_irq( unsigned int cluster_xy, 
37                              unsigned int local_id );
38
39extern void _timer_reset_cpt( unsigned int cluster_xy, 
40                              unsigned int local_id);
41
42extern void _timer_isr( unsigned int irq_type,
43                        unsigned int irq_id,
44                        unsigned int channel );
45
46///////////////////////////////////////////////////////////////////////////////////
47
48#endif
49
50// Local Variables:
51// tab-width: 4
52// c-basic-offset: 4
53// c-file-offsets:((innamespace . 0)(inline-open . 0))
54// indent-tabs-mode: nil
55// End:
56// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
57
Note: See TracBrowser for help on using the repository browser.