/[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.2 - (show annotations) (download)
Wed Sep 23 12:36:20 2009 UTC (15 years, 2 months ago) by mocchiut
Branch: MAIN
CVS Tags: v10RED, v9r00, v9r01, v10REDr01, HEAD
Changes since 1.1: +4 -2 lines
File MIME type: text/plain
Bug in seltrigger time conversion (selfdelay.c) fixed

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

  ViewVC Help
Powered by ViewVC 1.1.23