Last change
on this file since 269 was
263,
checked in by alain, 11 years ago
|
Introducing support for TSAR fixed format cluster index (cluster_xy)
We have now 4 parameters defined in map.xml:
- X_WIDTH, Y_WIDTH define the fixed format (typically X_WIDTH = 4 / Y_WIDTH = 4)
- X_SIZE, Y_SIZE define the actual TSAR 2D mesh variable size (from 1 to 16)
|
File size:
1.8 KB
|
Rev | Line | |
---|
[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 | |
---|
| 15 | enum 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 | |
---|
| 29 | extern volatile unsigned char _timer_event[]; |
---|
| 30 | |
---|
[263] | 31 | extern unsigned int _timer_start( unsigned int cluster_xy, |
---|
[258] | 32 | unsigned int local_id, |
---|
| 33 | unsigned int period ); |
---|
| 34 | |
---|
[263] | 35 | extern unsigned int _timer_stop( unsigned int cluster_xy, |
---|
[258] | 36 | unsigned int local_id ); |
---|
| 37 | |
---|
[263] | 38 | extern unsigned int _timer_reset_irq( unsigned int cluster_xy, |
---|
[258] | 39 | unsigned int local_id ); |
---|
| 40 | |
---|
[263] | 41 | extern unsigned int _timer_reset_cpt( unsigned int cluster_xy, |
---|
[258] | 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.