Commit 85915dfa16407eb4e32940c88dbc2798ffa362de
authorbsekisser <squirmyworms@embarqmail.com>
Mon, 3 Mar 2014 22:14:36 +0000 (17:14 -0500)
committerbsekisser <squirmyworms@embarqmail.com>
Mon, 3 Mar 2014 22:14:36 +0000 (17:14 -0500)
tree9f86bea1bb66fcbbab046fdbdb5d0d4486db98c4
parentcc54eda5e96867b724ffb9a6e3610fce557faad5
Message:
avr_timer: changed avr_timer_write_ocr as part of larger avr_timer refactor.

- changed avr_timer_write_ocr code to take pointer of relevant
   comparator structure rather than its parent timer.

- added _timer_get_comp_ocr which the modified avr_timer_write_ocr
function uses.

modified:   simavr/sim/avr_timer.c
modified:   simavr/sim/avr_timer.h
2 files changed:
simavr/sim/avr_timer.c
simavr/sim/avr_timer.h