diff options
author | Vitaly Shmagun <65466721+Vitve4@users.noreply.github.com> | 2020-05-28 20:31:49 +0300 |
---|---|---|
committer | Vitaly Shmagun <65466721+Vitve4@users.noreply.github.com> | 2020-11-01 14:46:39 +0100 |
commit | 4fd3801e32fee9e25f04ae68a4cbfc95533d56df (patch) | |
tree | 27c893fbe5e13f86bb317975fb1c0a9b3806afb5 /libraries/Bridge | |
parent | 58081c05e548560d3a60050bbf260ebec5d1e867 (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 'libraries/Bridge')
0 files changed, 0 insertions, 0 deletions