aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-12-29 13:14:00 +0100
committerRon Evans <[email protected]>2021-01-09 21:45:07 +0100
commit154c7c691bc5c25ba31b84d2583e833ede881de4 (patch)
treebd0a5d03a3bdee0508b51102d589226a0cd33504 /Makefile
parent65caf777ddadf9d55fd99d7bb640b57490485d07 (diff)
downloadtinygo-154c7c691bc5c25ba31b84d2583e833ede881de4.tar.gz
tinygo-154c7c691bc5c25ba31b84d2583e833ede881de4.zip
stm32: use stm32-rs SVDs which are of much higher quality
This commit changes the number of wait states for the stm32f103 chip to 2 instead of 4. This gets it back in line with the datasheet, but it also has the side effect of breaking I2C. Therefore, another (seemingly unrelated) change is needed: the i2cTimeout constant must be increased to a higher value to adjust to the lower flash wait states - presumably because the lower number of wait states allows the chip to run code faster.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b3cb8f50..601735a48 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ gen-device-kendryte: build/gen-device-svd
GO111MODULE=off $(GO) fmt ./src/device/kendryte
gen-device-stm32: build/gen-device-svd
- ./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/STMicro lib/cmsis-svd/data/STMicro/ src/device/stm32/
+ ./build/gen-device-svd -source=https://github.com/tinygo-org/stm32-svd lib/stm32-svd/svd src/device/stm32/
GO111MODULE=off $(GO) fmt ./src/device/stm32