Changeset 45 for webserver/example/EnergyMeters/Source
- Timestamp:
- 02/07/10 11:28:03 (15 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
webserver/example/EnergyMeters/Source/EnergyMeters/Meters.c
r42 r45 40 40 vSemaphoreCreateBinary( xMetersSemaphore ); 41 41 42 //Init_P2_0(); /* init GPIO for meters */42 Init_P2_0(); /* init GPIO for meters */ 43 43 // TODO: put this in again, right now it interferes with Solar UART3! 44 44 webserver/example/EnergyMeters/Source/EnergyMeters/MetersIncludes.h
r30 r45 3 3 unsigned long long getEpochTimeWithMs(void); 4 4 5 #define NUMBER_OF_METERS 1 0/* the number of meters we use */5 #define NUMBER_OF_METERS 11 /* the number of meters we use */ 6 6 7 #define METER_INDEX_GAS 0 /* index of the gas meter data */7 #define METER_INDEX_GAS 10 /* index of the gas meter data */ 8 8 9 9 #define DEBOUNCE_TICK_THRESHOLD_MS 50 /* when two ticks are less than this time period apart, the second tick is ignored (debouncing) */ webserver/example/EnergyMeters/Source/EnergyMeters/Meters_ISRs.c
r43 r45 96 96 unsigned long long currentTime = getEpochTimeWithMs(); /* current epoch time with ms in ms */ 97 97 98 if (portNum >= NUMBER_OF_METERS) /* allowed index: 0 to (NUMBER_OF_METERS-1) */ 99 { 100 return; /* invalid value */ 101 } 102 98 103 globalValue++; 99 104 // LCD_cls();