diff --git a/README.md b/README.md index b380c09c..8423bb74 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Note that the SDK integration examples (Pico SDK, Zephyr SDK, etc.) are not reco ### Code of Conduct -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/). +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/). ### Contact information diff --git a/pico-blink-sdk/README.md b/pico-blink-sdk/README.md index 6d1f452a..6885b7d1 100644 --- a/pico-blink-sdk/README.md +++ b/pico-blink-sdk/README.md @@ -32,7 +32,7 @@ $ cmake --build build ## Running - 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). -- Copy the UF2 firmare to the Mass Storage device: +- Copy the UF2 firmware to the Mass Storage device: ```console $ cp build/swift-blinky.uf2 /Volumes/RP2040 diff --git a/pico-blink/Sources/RP2040/Hardware/XOSC.swift b/pico-blink/Sources/RP2040/Hardware/XOSC.swift index c27ffd43..a3d75171 100644 --- a/pico-blink/Sources/RP2040/Hardware/XOSC.swift +++ b/pico-blink/Sources/RP2040/Hardware/XOSC.swift @@ -55,7 +55,7 @@ extension RP2040Hardware { case reserved1 = 0xaa1 case reserved2 = 0xaa2 case reserved3 = 0xaa3 - case unknwon = 0xfa5 // somehow this is a value? + case unknown = 0xfa5 // somehow this is a value? init(decoding value: UInt32) { self.init(rawValue: value)! diff --git a/stm32-blink/Main.swift b/stm32-blink/Main.swift index 38a4f201..13eb5ff9 100644 --- a/stm32-blink/Main.swift +++ b/stm32-blink/Main.swift @@ -37,8 +37,8 @@ enum STM32F746Board { setRegisterBit(baseAddress: GPIO.GPIOi_BaseAddress, offset: GPIO.Offsets.ODR, bit: 1, value: 0) } - static func delay(miliseconds: Int) { - for _ in 0 ..< 10_000 * miliseconds { + static func delay(milliseconds: Int) { + for _ in 0 ..< 10_000 * milliseconds { nop() } } @@ -53,9 +53,9 @@ struct Main { while true { Board.ledOn() - Board.delay(miliseconds: 100) + Board.delay(milliseconds: 100) Board.ledOff() - Board.delay(miliseconds: 300) + Board.delay(milliseconds: 300) } } } diff --git a/stm32-lcd-logo/Main.swift b/stm32-lcd-logo/Main.swift index 6b838fe7..e1435bba 100644 --- a/stm32-lcd-logo/Main.swift +++ b/stm32-lcd-logo/Main.swift @@ -16,12 +16,12 @@ struct Main { let blink = { board.ledOn() - board.delay(miliseconds: 10) + board.delay(milliseconds: 10) board.ledOff() - board.delay(miliseconds: 20) + board.delay(milliseconds: 20) } - board.delay(miliseconds: 10) + board.delay(milliseconds: 10) let maxLogoPosition = Point(x: board.displaySize.width - board.logoLayerSize.width, y: board.displaySize.height - board.logoLayerSize.height) @@ -33,7 +33,7 @@ struct Main { var iteration = 0 while true { - board.delay(miliseconds: 10) + board.delay(milliseconds: 10) logoPosition = logoPosition.offset(by: logoDelta) board.moveLogo(to: logoPosition) diff --git a/stm32-lcd-logo/Support/Board.swift b/stm32-lcd-logo/Support/Board.swift index 71a8c40b..7b401a3b 100644 --- a/stm32-lcd-logo/Support/Board.swift +++ b/stm32-lcd-logo/Support/Board.swift @@ -34,8 +34,8 @@ struct STM32F746Board { led.deassert() } - mutating func delay(miliseconds: Int) { - for _ in 0 ..< 100_000 * miliseconds { + mutating func delay(milliseconds: Int) { + for _ in 0 ..< 100_000 * milliseconds { nop() } } diff --git a/stm32-neopixel/Makefile b/stm32-neopixel/Makefile index 791c78d2..60845a91 100755 --- a/stm32-neopixel/Makefile +++ b/stm32-neopixel/Makefile @@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py .PHONY: build build: - @echo "compling..." + @echo "compiling..." $(SWIFT_BUILD) \ --configuration release \ --verbose \ diff --git a/stm32-uart-echo/Makefile b/stm32-uart-echo/Makefile index 5d1c929a..92b2dfe4 100755 --- a/stm32-uart-echo/Makefile +++ b/stm32-uart-echo/Makefile @@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py .PHONY: build build: - @echo "compling..." + @echo "compiling..." $(SWIFT_BUILD) \ --configuration release \ --verbose \