aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_stm32f103.go
diff options
context:
space:
mode:
authordkegel-fastly <[email protected]>2024-08-12 14:24:38 -0700
committerGitHub <[email protected]>2024-08-12 14:24:38 -0700
commit8135be4e908d0744c46399aac9d9fc3aa4a17e55 (patch)
treecf5ef0bcc9ee5dc935aeb26a29f056dc3d6217c9 /src/machine/machine_stm32f103.go
parent835e73237e7413b5b71a5fe04f642b1768778c66 (diff)
downloadtinygo-8135be4e908d0744c46399aac9d9fc3aa4a17e55.tar.gz
tinygo-8135be4e908d0744c46399aac9d9fc3aa4a17e55.zip
GNUmakefile: add spellfix target, use it. (#4387)
TODO: Remove the go.mod/go.sum in internal/tools once doing so doesn't break CI (e.g. once we drop support for go 1.19) * builder/cc1as.h: fix typo found by 'make spell' * GNUmakefile: remove exception for inbetween, fix instance now found by 'make spell' * GNUmakefile: remove exception for programmmer, fix instance now found by 'make spell' * go.mod: use updated misspell. GNUmakefile: add spellfix target, use it. * ignore directories properly when invoking spellchecker. * make spell: give internal/tools its own go.mod, as misspell requires newer go * make lint: depend on tools and run the installed revive (which was perhaps implied by the change that added revive to internal/tools, but not required in GNUmakefile until we gave internal/tools its own temporary go.mod) * .github: now that 'make spell' works well, run it from CI * GNUmakefile: make spell now aborts if it finds misspelt words, so what it finds doesn't get lost in CI logs * GNUmakefile: tools: avoid -C option on go generate to make test-llvm15-go119 circleci job happy, see https://cs.opensource.google/go/go/+/2af48cbb7d85e5fdc635e75b99f949010c607786 * internal/tools/go.mod: fix format of go version to leave out patchlevel, else go complains.
Diffstat (limited to 'src/machine/machine_stm32f103.go')
-rw-r--r--src/machine/machine_stm32f103.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_stm32f103.go b/src/machine/machine_stm32f103.go
index 66a74d04b..545c43111 100644
--- a/src/machine/machine_stm32f103.go
+++ b/src/machine/machine_stm32f103.go
@@ -399,7 +399,7 @@ func (i2c *I2C) getFreqRange(config I2CConfig) uint32 {
// pclk1 clock speed is main frequency divided by PCLK1 prescaler (div 2)
pclk1 := CPUFrequency() / 2
- // set freqency range to PCLK1 clock speed in MHz
+ // set frequency range to PCLK1 clock speed in MHz
// aka setting the value 36 means to use 36 MHz clock
return pclk1 / 1000000
}