Skip to content

Commit 40cf9d2

Browse files
committed
Fix copyrights, add comments, update README, avoid custom .swift files
1 parent 1e3b960 commit 40cf9d2

File tree

21 files changed

+74
-145
lines changed

21 files changed

+74
-145
lines changed

.swiftformatignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
./harmony/*
2+
./stm32-lvgl/*
23
./stm32-lcd-logo/Sources/Application/Registers/*
34
./stm32-lvgl/Sources/Registers/*
45
./stm32-neopixel/Sources/Application/Registers/*

stm32-lvgl/.swift-format

Lines changed: 0 additions & 71 deletions
This file was deleted.

stm32-lvgl/.swift-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

stm32-lvgl/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
##
33
## This source file is part of the Swift open source project
44
##
5-
## Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
## Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
## Licensed under Apache License v2.0 with Runtime Library Exception
77
##
88
## See https://swift.org/LICENSE.txt for license information
@@ -32,8 +32,6 @@ BUILDROOT := $(shell $(SWIFT_BUILD) $(SWIFT_BUILD_ARGS) --show-bin-path)
3232
build:
3333
@echo "checking dependencies..."
3434

35-
# TODO: Check that we have swiftly and recent Swift main toolchain
36-
3735
if [[ ! -d $(PWD)/lvgl ]]; then echo "\n *** LVGL checkout not found, please run ./fetch-dependencies.sh\n" ; exit 1 ; fi
3836
if [[ ! -d $(PWD)/llvm-toolchain ]]; then echo "\n *** LLVM toolchain checkout not found, please run ./fetch-dependencies.sh\n" ; exit 1 ; fi
3937

stm32-lvgl/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ Additionally, this sample code:
1919
## How to build and run this example:
2020

2121
1. Connect the STM32F746G-DISCO board via the ST-LINK USB port to your Mac.
22-
2. Install a recent nightly "main" Swift toolchain. This is best done using `swiftly`, for example with:
22+
2. Install the right Swift toolchain specified in this repo's `.swift-version` file. This is best done using `swiftly`:
2323
```console
24-
$ swiftly install main-snapshot-2025-04-12
25-
$ swiftly use main-snapshot-2025-04-12 -g
24+
$ swiftly install # Run in the project's directory
2625
```
2726
3. Install the `stlink` (https://github.com/stlink-org/stlink) command line tools, e.g. via `brew install stlink`.
2827
4. Run a provided shell script that fetches the LVGL and LLVM dependencies:

stm32-lvgl/Sources/Application/Clocks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

stm32-lvgl/Sources/Application/Debug.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

stm32-lvgl/Sources/Application/I2C.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

stm32-lvgl/Sources/Application/Interrupts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

stm32-lvgl/Sources/Application/Lcd.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors.
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors.
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

0 commit comments

Comments
 (0)