Skip to content

Commit 69dc23e

Browse files
authored
Fix typos (#3)
1 parent a99ab0a commit 69dc23e

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Note that the SDK integration examples (Pico SDK, Zephyr SDK, etc.) are not reco
3232

3333
### Code of Conduct
3434

35-
Like all Swift.org projects, we would like these Embedded Swift example projecs to foster a diverse and friendly community. We expect contributors to adhere to the [Swift.org Code of Conduct](https://swift.org/code-of-conduct/).
35+
Like all Swift.org projects, we would like these Embedded Swift example projects to foster a diverse and friendly community. We expect contributors to adhere to the [Swift.org Code of Conduct](https://swift.org/code-of-conduct/).
3636

3737
### Contact information
3838

pico-blink-sdk/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $ cmake --build build
3232
## Running
3333

3434
- Connect the Pico W board via a USB cable to your Mac, and make sure it's in the USB Mass Storage firmware upload mode (either hold the BOOTSEL button while plugging the board, or make sure your Flash memory doesn't contain any valid firmware).
35-
- Copy the UF2 firmare to the Mass Storage device:
35+
- Copy the UF2 firmware to the Mass Storage device:
3636

3737
```console
3838
$ cp build/swift-blinky.uf2 /Volumes/RP2040

pico-blink/Sources/RP2040/Hardware/XOSC.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extension RP2040Hardware {
5555
case reserved1 = 0xaa1
5656
case reserved2 = 0xaa2
5757
case reserved3 = 0xaa3
58-
case unknwon = 0xfa5 // somehow this is a value?
58+
case unknown = 0xfa5 // somehow this is a value?
5959

6060
init(decoding value: UInt32) {
6161
self.init(rawValue: value)!

stm32-blink/Main.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ enum STM32F746Board {
3737
setRegisterBit(baseAddress: GPIO.GPIOi_BaseAddress, offset: GPIO.Offsets.ODR, bit: 1, value: 0)
3838
}
3939

40-
static func delay(miliseconds: Int) {
41-
for _ in 0 ..< 10_000 * miliseconds {
40+
static func delay(milliseconds: Int) {
41+
for _ in 0 ..< 10_000 * milliseconds {
4242
nop()
4343
}
4444
}
@@ -53,9 +53,9 @@ struct Main {
5353

5454
while true {
5555
Board.ledOn()
56-
Board.delay(miliseconds: 100)
56+
Board.delay(milliseconds: 100)
5757
Board.ledOff()
58-
Board.delay(miliseconds: 300)
58+
Board.delay(milliseconds: 300)
5959
}
6060
}
6161
}

stm32-lcd-logo/Main.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ struct Main {
1616

1717
let blink = {
1818
board.ledOn()
19-
board.delay(miliseconds: 10)
19+
board.delay(milliseconds: 10)
2020
board.ledOff()
21-
board.delay(miliseconds: 20)
21+
board.delay(milliseconds: 20)
2222
}
2323

24-
board.delay(miliseconds: 10)
24+
board.delay(milliseconds: 10)
2525

2626
let maxLogoPosition = Point(x: board.displaySize.width - board.logoLayerSize.width, y: board.displaySize.height - board.logoLayerSize.height)
2727

@@ -33,7 +33,7 @@ struct Main {
3333
var iteration = 0
3434

3535
while true {
36-
board.delay(miliseconds: 10)
36+
board.delay(milliseconds: 10)
3737

3838
logoPosition = logoPosition.offset(by: logoDelta)
3939
board.moveLogo(to: logoPosition)

stm32-lcd-logo/Support/Board.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ struct STM32F746Board {
3434
led.deassert()
3535
}
3636

37-
mutating func delay(miliseconds: Int) {
38-
for _ in 0 ..< 100_000 * miliseconds {
37+
mutating func delay(milliseconds: Int) {
38+
for _ in 0 ..< 100_000 * milliseconds {
3939
nop()
4040
}
4141
}

stm32-neopixel/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py
2525

2626
.PHONY: build
2727
build:
28-
@echo "compling..."
28+
@echo "compiling..."
2929
$(SWIFT_BUILD) \
3030
--configuration release \
3131
--verbose \

stm32-uart-echo/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py
2525

2626
.PHONY: build
2727
build:
28-
@echo "compling..."
28+
@echo "compiling..."
2929
$(SWIFT_BUILD) \
3030
--configuration release \
3131
--verbose \

0 commit comments

Comments
 (0)