Skip to content

Fix typos #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pico-blink-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pico-blink/Sources/RP2040/Hardware/XOSC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
Expand Down
8 changes: 4 additions & 4 deletions stm32-blink/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand All @@ -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)
}
}
}
8 changes: 4 additions & 4 deletions stm32-lcd-logo/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions stm32-lcd-logo/Support/Board.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion stm32-neopixel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py

.PHONY: build
build:
@echo "compling..."
@echo "compiling..."
$(SWIFT_BUILD) \
--configuration release \
--verbose \
Expand Down
2 changes: 1 addition & 1 deletion stm32-uart-echo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MACHO2BIN := $(SRCROOT)/../Tools/macho2bin.py

.PHONY: build
build:
@echo "compling..."
@echo "compiling..."
$(SWIFT_BUILD) \
--configuration release \
--verbose \
Expand Down