/[PAMELA software]/DarthVader/CalorimeterLevel2/src/delay.c
ViewVC logotype

Annotation of /DarthVader/CalorimeterLevel2/src/delay.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Fri May 19 13:15:50 2006 UTC (18 years, 6 months ago) by mocchiut
Branch: DarthVader
CVS Tags: v0r01, v0r02, v5r00, v4r00, v2r01, v1r01beta, start, v1r00, v1r01, v3r04, v3r05, v3r06, v3r00, v3r03, v6r01, v6r00, v2r00BETA
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Imported sources

1 mocchiut 1.1 #include <delay.h>
2    
3     int delay(int selftrig){
4     int i;
5     i = 0;
6     int del = 300;
7     //
8     while ((i < 16) && ((selftrig & (0x8000>>i)) == 0)) {
9     del += 50;
10     i++;
11     };
12     if (i > 15) del = 1100;
13     return(del);
14     }

  ViewVC Help
Powered by ViewVC 1.1.23