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

Last change on this file since 260 was 258, checked in by alain, 11 years ago

This is a major release, including a deep restructuration of code.
The main evolutions are

  • use of the Tsar preloader to load the GIET boot-loader from disk
  • introduction of a FAT32 file system library,
  • use of this fat32 library by the boot-loader to load the map.bin data structure, and the various .elf files
  • reorganisation of drivers (one file per peripheral).
  • introduction of drivers for new peripherals: vci_chbuf_dma and vci_multi_ahci.
  • introduction of a new physical memory allocator in the boot code.

This release has been tested on the tsar_generic_iob architecture,
for the two following mappings: 4c_1p_iob_four.xml and 4c_1p_iob_sort.xml

File size: 1.8 KB
RevLine 
[258]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_DRIVERS_H_
9#define _GIET_TIM_DRIVERS_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 volatile unsigned char _timer_event[];
30
31extern unsigned int _timer_start( unsigned int cluster_id, 
32                                  unsigned int local_id, 
33                                  unsigned int period );
34
35extern unsigned int _timer_stop( unsigned int cluster_id,
36                                 unsigned int local_id );
37
38extern unsigned int _timer_reset_irq( unsigned int cluster_id, 
39                                      unsigned int local_id );
40
41extern unsigned int _timer_reset_cpt( unsigned int cluster_id, 
42                                      unsigned int local_id);
43
44///////////////////////////////////////////////////////////////////////////////////
45
46#endif
47
48// Local Variables:
49// tab-width: 4
50// c-basic-offset: 4
51// c-file-offsets:((innamespace . 0)(inline-open . 0))
52// indent-tabs-mode: nil
53// End:
54// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
55
Note: See TracBrowser for help on using the repository browser.