1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 91 unchanged lines hidden (view full) --- 100 stat_regB |= RTCB_BIN; 101 102 setTime(time); 103 DPRINTFN("Real-time clock set to %s", asctime(&time)); 104} 105 106MC146818::~MC146818() 107{ |
108 deschedule(tickEvent); 109 deschedule(event); |
110} 111 112void 113MC146818::writeData(const uint8_t addr, const uint8_t data) 114{ 115 if (addr < RTC_STAT_REGA) { 116 clock_data[addr] = data; 117 curTime.tm_sec = unbcdize(sec); --- 165 unchanged lines hidden --- |