- Timestamp:
- 04/09/10 16:20:22 (2 years ago)
- Location:
- flukso/trunk/uc
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
flukso/trunk/uc/Makefile
r121 r122 45 45 # Predefine the TYPE and SENSORx C macros in main.h via this Makefile. 46 46 # Override the defaults on the command line by typing: 47 # make TYPE=xxxx SENSOR0=yyyy...47 # make PHASE=x METERCONST=y SENSOR0=z ... 48 48 # 49 49 DBG = 0 50 50 # 51 51 TYPE = 2300501 52 PHASE = 1 52 53 METERCONST= 5508 53 54 # … … 57 58 SENSOR3 = 0123456789abcdef0123456789abcde3 58 59 # 59 CEXTRA = -D DBG=$(DBG) -D METERCONST=$(METERCONST) -D 'SENSOR0="$(SENSOR0)"' -D 'SENSOR1="$(SENSOR1)"' -D 'SENSOR2="$(SENSOR2)"' -D 'SENSOR3="$(SENSOR3)"'60 CEXTRA = -D DBG=$(DBG) -D PHASE=$(PHASE) -D METERCONST=$(METERCONST) -D 'SENSOR0="$(SENSOR0)"' -D 'SENSOR1="$(SENSOR1)"' -D 'SENSOR2="$(SENSOR2)"' -D 'SENSOR3="$(SENSOR3)"' 60 61 ############################################################################### 61 62 -
flukso/trunk/uc/main.c
r119 r122 80 80 // read ADC result 81 81 // add to nano(Wh) counter 82 #if PHASE == 2 83 MacU16X16to32(aux[0].nano, METERCONST, ADC); 84 #else 82 85 MacU16X16to32(aux[muxn].nano, METERCONST, ADC); 83 86 #endif 84 87 if (aux[muxn].nano > WATT) { 85 88 measurements[muxn].value++; -
flukso/trunk/uc/main.h
r121 r122 41 41 #ifndef SENSOR3 42 42 #error "SENSOR3 not defined" 43 #endif 44 45 #ifndef PHASE 46 #error "PHASE not defined" 43 47 #endif 44 48
