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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 19 13:15:50 2006 UTC (18 years, 6 months ago) by mocchiut
Branch: MAIN
Branch point for: DarthVader
File MIME type: text/plain
Initial revision

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