aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorRon Evans <[email protected]>2019-06-08 15:16:13 +0200
committerAyke <[email protected]>2019-09-13 00:40:25 +0200
commit656fb4e372d926432cc4a0528d2aab184d91ba42 (patch)
treefe31cca62dd15c8ab66ba81beff98b255d100632 /tools
parentf4485f414f860362966b274846afaaf1b722b2a4 (diff)
downloadtinygo-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-xtools/gen-device-svd.py2
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: