Changeset 10 for ds1337

Show
Ignore:
Timestamp:
10/17/07 22:32:17 (15 months ago)
Author:
mlalondesvn
Message:

DS1337:

MODIF - Interrupt flags are now set low only after the callback execution has completed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ds1337/ds1337.cpp

    r9 r10  
    495495    if (getRegisterBit(DS1337_STATUS, DS1337_STATUS_A1F)) 
    496496    { 
    497         unsetRegister(DS1337_STATUS, DS1337_STATUS_A1F); delay(10); 
    498497        if (DS1337callbackFunc[0]) DS1337callbackFunc[0](); 
     498        unsetRegister(DS1337_STATUS, DS1337_STATUS_A1F); 
    499499    } 
    500500     
    501501    if (getRegisterBit(DS1337_STATUS, DS1337_STATUS_A2F)) 
    502502    { 
    503         unsetRegister(DS1337_STATUS, DS1337_STATUS_A2F); delay(10); 
    504503        if (DS1337callbackFunc[1]) DS1337callbackFunc[1](); 
     504        unsetRegister(DS1337_STATUS, DS1337_STATUS_A2F); 
    505505    } 
    506506