diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2008-11-03 18:19:27 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2008-11-03 18:19:27 +0000 |
commit | 81649b82b7e6e9954b634f0443e9640163f22912 (patch) | |
tree | 08203c26e3570514affe98fcfd728aee6a367430 /libs-device | |
parent | 7ffa11b5fe5136ba63a059aea31ee2cb7ac20cf8 (diff) | |
download | v-usb-81649b82b7e6e9954b634f0443e9640163f22912.tar.gz v-usb-81649b82b7e6e9954b634f0443e9640163f22912.tar.bz2 v-usb-81649b82b7e6e9954b634f0443e9640163f22912.zip |
- no offset of 0x20 needed if symbol is a memory address.
Diffstat (limited to 'libs-device')
-rw-r--r-- | libs-device/osctune.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs-device/osctune.h b/libs-device/osctune.h index f8bfa97..e359c38 100644 --- a/libs-device/osctune.h +++ b/libs-device/osctune.h @@ -59,10 +59,10 @@ macro tuneOsccal sts lastTimer0Value, YL ;[5] sub YL, YH ;[7] time passed since last frame subi YL, EXPECTED_TIMER0_INCREMENT ;[8] -#if OSCCAL > 0x3f - lds YH, 0x20 + OSCCAL ;[6] +#if OSCCAL > 0x3f /* outside I/O addressable range */ + lds YH, OSCCAL ;[6] #else - in YH, OSCCAL ;[6] + in YH, OSCCAL ;[6] assembler modle uses __SFR_OFFSET == 0 #endif cpi YL, TOLERATED_DEVIATION + 1 ;[10] brmi notTooHigh ;[11] @@ -75,8 +75,8 @@ notTooHigh: inc YH ;[15] clock rate was too low ; breq tuningOverflow ; optionally check for overflow osctuneDone: -#if OSCCAL > 0x3f - sts 0x20 + OSCCAL, YH ;[12-13] store tuned value +#if OSCCAL > 0x3f /* outside I/O addressable range */ + sts OSCCAL, YH ;[12-13] store tuned value #else out OSCCAL, YH ;[12-13] store tuned value #endif |