diff options
author | Ron Evans <[email protected]> | 2019-06-08 15:16:13 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2019-09-13 00:40:25 +0200 |
commit | 656fb4e372d926432cc4a0528d2aab184d91ba42 (patch) | |
tree | fe31cca62dd15c8ab66ba81beff98b255d100632 /tools | |
parent | f4485f414f860362966b274846afaaf1b722b2a4 (diff) | |
download | tinygo-656fb4e372d926432cc4a0528d2aab184d91ba42.tar.gz tinygo-656fb4e372d926432cc4a0528d2aab184d91ba42.zip |
tools/generator: correctly handle padding when it is 3 bytes long
Signed-off-by: Ron Evans <[email protected]>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gen-device-svd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py index ee0165ee7..16a35005a 100755 --- a/tools/gen-device-svd.py +++ b/tools/gen-device-svd.py @@ -396,6 +396,8 @@ const ( out.write('\t_padding{padNumber} {regType}\n'.format(padNumber=padNumber, regType='volatile.Register8')) elif bytesNeeded == 2: out.write('\t_padding{padNumber} {regType}\n'.format(padNumber=padNumber, regType='volatile.Register16')) + elif bytesNeeded == 3: + out.write('\t_padding{padNumber} [3]{regType}\n'.format(padNumber=padNumber, regType='volatile.Register8')) else: numSkip = (register['address'] - address) // eSize if numSkip == 1: |