projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
043f79c
)
Commit
dbcd8541fdbdd487a0839c8bb8d5ebf387b9c9dd
author
Michel Pollet
<buserror@gmail.com>
Wed, 10 Jun 2015 20:00:02 +0000
(21:00 +0100)
committer
Michel Pollet
<buserror@gmail.com>
Wed, 10 Jun 2015 20:00:02 +0000
(21:00 +0100)
Accidentally commited this earlier
Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/avr_adc.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/avr_adc.c
b/simavr/sim/avr_adc.c
index ee6abb87405f6466f684ab2f342aabc3dfce695d..ad64b9e81af4199c19a85aad8e35bffe872a6efb 100644
(file)
--- a/
simavr/sim/avr_adc.c
+++ b/
simavr/sim/avr_adc.c
@@
-238,8
+238,7
@@
avr_adc_write_adcsra(
uint32_t v;
} e = { .mux = p->muxmode[muxi] };
avr_raise_irq(p->io.irq + ADC_IRQ_OUT_TRIGGER, e.v);
- if (muxi == 0)
- printf("Start ADC %d\n", muxi);
+
// clock prescaler are just a bit shift.. and 0 means 1
uint32_t div = avr_regbit_get_array(avr, p->adps, ARRAY_SIZE(p->adps));
if (!div) div++;