aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/new.h
diff options
context:
space:
mode:
authorVitaly Shmagun <65466721+Vitve4@users.noreply.github.com>2020-05-28 20:31:49 +0300
committerVitaly Shmagun <65466721+Vitve4@users.noreply.github.com>2020-11-01 14:46:39 +0100
commit4fd3801e32fee9e25f04ae68a4cbfc95533d56df (patch)
tree27c893fbe5e13f86bb317975fb1c0a9b3806afb5 /cores/arduino/new.h
parent58081c05e548560d3a60050bbf260ebec5d1e867 (diff)
Improve reading ADC result
7.3.0-atmel3.6.1-arduino7 gcc fails to optimize separate reading from ADCL and ADCH. It produces additionally three eor commands or in some cases two mov commands in the assembly code (see discussion #344). These commands swap register contents before store them to data area. So they are completely unnecessary. Reading ADC result with ADC macro fixes it and gcc generates the right code..
Diffstat (limited to 'cores/arduino/new.h')
0 files changed, 0 insertions, 0 deletions