Changeset 59 for webserver/example

Show
Ignore:
Timestamp:
03/20/10 13:24:05 (15 years ago)
Author:
phil
Message:

adaptation to new ETT 4 channel opto I/O board

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • webserver/example/EnergyMeters/Source/EnergyMeters/Meters.c

    r53 r59  
    119119  /* bits are 0 here */ 
    120120  /* 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; 
    122122 
    123123 
     
    126126  IO2_INT_EN_R |= (1<<1); /* enable rising edge interrupt for P2:1 */ 
    127127  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 */ 
    131130  IO2_INT_EN_R |= (1<<3); /* enable rising edge interrupt for P2:3 */ 
    132131  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 */ 
    135135 
    136136  VICVectAddr17 = (portLONG) vP2_0_ISR_Wrapper; /* EINT-3 interrupt handler */ 
  • webserver/example/EnergyMeters/Source/EnergyMeters/Meters_ISRs.c

    r52 r59  
    4646    IO2_INT_CLR |= (1<<1); 
    4747  } 
    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*/ 
    5554  { 
    5655    handleMeterTick(METER_INDEX_AU1); 
    5756    IO2_INT_CLR |= (1<<3); 
    5857  } 
    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  //} 
    6564  /* Clear the interrupt. */  
    6665  VICVectAddr = 0;