Changeset 59
- Timestamp:
- 03/20/10 13:24:05 (15 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
webserver/example/EnergyMeters/Source/EnergyMeters/Meters.c
r53 r59 119 119 /* bits are 0 here */ 120 120 /* disable pull-up/down resistors on 2.0, 2.1, 2.3, 2.4 (put binary 10 for all), don't change 2.2! */ 121 PINMODE4 |= 0x28A;121 // dont change anymore : PINMODE4 |= 0x28A; 122 122 123 123 … … 126 126 IO2_INT_EN_R |= (1<<1); /* enable rising edge interrupt for P2:1 */ 127 127 IO2_INT_EN_F &= ~(1<<1); /* disable falling edge interrupt for P2:1 */ 128 // P2.2 is not connected! 129 //IO2_INT_EN_R |= (1<<2); /* enable rising edge interrupt for P2:2 */ 130 //IO2_INT_EN_F &= ~(1<<2); /* disable falling edge interrupt for P2:2 */ 128 IO2_INT_EN_R |= (1<<2); /* enable rising edge interrupt for P2:2 */ 129 IO2_INT_EN_F &= ~(1<<2); /* disable falling edge interrupt for P2:2 */ 131 130 IO2_INT_EN_R |= (1<<3); /* enable rising edge interrupt for P2:3 */ 132 131 IO2_INT_EN_F &= ~(1<<3); /* disable falling edge interrupt for P2:3 */ 133 IO2_INT_EN_R |= (1<<4); /* enable rising edge interrupt for P2:4 */ 134 IO2_INT_EN_F &= ~(1<<4); /* disable falling edge interrupt for P2:4 */ 132 // P2.4 is not connected! 133 //IO2_INT_EN_R |= (1<<4); /* enable rising edge interrupt for P2:4 */ 134 //IO2_INT_EN_F &= ~(1<<4); /* disable falling edge interrupt for P2:4 */ 135 135 136 136 VICVectAddr17 = (portLONG) vP2_0_ISR_Wrapper; /* EINT-3 interrupt handler */ webserver/example/EnergyMeters/Source/EnergyMeters/Meters_ISRs.c
r52 r59 46 46 IO2_INT_CLR |= (1<<1); 47 47 } 48 // P0.2 is not connected! 49 //if ((IO2_INT_STAT_R & (1 << 2)) != 0) /* P0.2 interrupt triggered - connector J4, Pin 2*/ 50 //{ 51 // handleMeterTick(METER_INDEX_EL2); 52 // IO2_INT_CLR |= (1<<2); 53 //} 54 if ((IO2_INT_STAT_R & (1 << 3)) != 0) /* P0.3 interrupt triggered - connector J4, Pin 3*/ 48 if ((IO2_INT_STAT_R & (1 << 2)) != 0) /* P0.3 interrupt triggered - connector J4, Pin 3*/ 49 { 50 handleMeterTick(METER_INDEX_EL2); 51 IO2_INT_CLR |= (1<<2); 52 } 53 if ((IO2_INT_STAT_R & (1 << 3)) != 0) /* P0.4 interrupt triggered - connector J4, Pin 4*/ 55 54 { 56 55 handleMeterTick(METER_INDEX_AU1); 57 56 IO2_INT_CLR |= (1<<3); 58 57 } 59 if ((IO2_INT_STAT_R & (1 << 4)) != 0) /* P0.4 interrupt triggered - connector J4, Pin 4*/60 {61 handleMeterTick(METER_INDEX_AU2);62 IO2_INT_CLR |= (1<<4);63 }64 58 // P0.4 is not connected! 59 //if ((IO2_INT_STAT_R & (1 << 4)) != 0) /* P0.2 interrupt triggered - connector J4, Pin 2*/ 60 //{ 61 // handleMeterTick(METER_INDEX_AU2); 62 // IO2_INT_CLR |= (1<<4); 63 //} 65 64 /* Clear the interrupt. */ 66 65 VICVectAddr = 0;