Skip to content

Commit 3ea71b6

Browse files
committed
Merge branch 'master' into fork/pschatzmann/rp2040-iso
2 parents b91d5eb + 6bba410 commit 3ea71b6

File tree

465 files changed

+7358
-25224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

465 files changed

+7358
-25224
lines changed

.circleci/config2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ commands:
114114
name: Build
115115
command: |
116116
if [ << parameters.toolchain >> == esp-idf ]; then
117-
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.1 python tools/build.py << parameters.family >>
117+
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.2 python tools/build.py << parameters.family >>
118118
else
119119
# Toolchain option default is gcc
120120
if [ << parameters.toolchain >> == arm-clang ]; then
121121
TOOLCHAIN_OPTION="--toolchain clang"
122122
elif [ << parameters.toolchain >> == arm-iar ]; then
123123
TOOLCHAIN_OPTION="--toolchain iar"
124+
echo IAR_LMS_CLOUD_URL=$IAR_LMS_CLOUD_URL
124125
iccarm --version
125126
elif [ << parameters.toolchain >> == arm-gcc ]; then
126127
TOOLCHAIN_OPTION="--toolchain gcc"

.github/actions/setup_toolchain/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ inputs:
44
toolchain:
55
description: 'Toolchain name'
66
required: true
7-
toolchain_version:
8-
description: 'Toolchain version'
9-
required: false
107

118
outputs:
129
build_option:
@@ -27,7 +24,6 @@ runs:
2724
uses: ./.github/actions/setup_toolchain/espressif
2825
with:
2926
toolchain: ${{ inputs.toolchain }}
30-
toolchain_version: ${{ inputs.toolchain_version }}
3127

3228
- name: Get Toolchain URL
3329
if: >-

.github/actions/setup_toolchain/espressif/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ inputs:
66
required: true
77
toolchain_version:
88
description: 'Toolchain version'
9-
required: true
9+
required: false
10+
default: 'v5.3.2'
1011

1112
runs:
1213
using: "composite"
@@ -39,3 +40,9 @@ runs:
3940
du -sh $DOCKER_ESP_IDF
4041
docker load --input $DOCKER_ESP_IDF
4142
shell: bash
43+
44+
- name: Tag Local Image
45+
run: |
46+
docker tag espressif/idf:${{ inputs.toolchain_version }} espressif/idf:tinyusb
47+
docker images
48+
shell: bash

.github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ jobs:
111111

112112
# ---------------------------------------
113113
# Build IAR on HFP self-hosted
114+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
114115
# ---------------------------------------
115116
arm-iar:
116117
if: github.repository_owner == 'hathach' && github.event_name == 'push'
117118
needs: set-matrix
118119
runs-on: [self-hosted, Linux, X64, hifiphile]
119120
env:
120121
BUILD_ARGS: ${{ join(fromJSON(needs.set-matrix.outputs.json)['arm-iar'], ' ') }}
121-
# IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
122+
IAR_LMS_CLOUD_URL: ${{ vars.IAR_LMS_CLOUD_URL }}
123+
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
122124
steps:
123125
- name: Clean workspace
124126
run: |
@@ -127,7 +129,9 @@ jobs:
127129
mkdir -p "${{ github.workspace }}"
128130
129131
- name: Toolchain version
130-
run: iccarm --version
132+
run: |
133+
echo IAR_LMS_CLOUD_URL=$IAR_LMS_CLOUD_URL
134+
iccarm --version
131135
132136
- name: Checkout TinyUSB
133137
uses: actions/checkout@v4
@@ -137,3 +141,24 @@ jobs:
137141

138142
- name: Build
139143
run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
144+
145+
# ---------------------------------------
146+
# Zephyr
147+
# ---------------------------------------
148+
zephyr:
149+
if: github.event_name == 'push'
150+
runs-on: ubuntu-latest
151+
steps:
152+
- name: Checkout TinyUSB
153+
uses: actions/checkout@v4
154+
155+
- name: Setup Zephyr project
156+
uses: zephyrproject-rtos/action-zephyr-setup@v1
157+
with:
158+
app-path: examples
159+
toolchains: arm-zephyr-eabi
160+
161+
- name: Build
162+
run: |
163+
west build -b pca10056 -d examples/device/cdc_msc/build examples/device/cdc_msc -- -DRTOS=zephyr
164+
west build -b pca10056 -d examples/device/msc_dual_lun/build examples/device/msc_dual_lun -- -DRTOS=zephyr

.github/workflows/build_util.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
uses: ./.github/actions/setup_toolchain
4242
with:
4343
toolchain: ${{ inputs.toolchain }}
44-
toolchain_version: 'v5.3.1'
4544

4645
- name: Get Dependencies
4746
uses: ./.github/actions/get_deps
@@ -61,7 +60,7 @@ jobs:
6160
- name: Build
6261
run: |
6362
if [ "${{ inputs.toolchain }}" == "esp-idf" ]; then
64-
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.1 python tools/build.py ${{ matrix.arg }}
63+
docker run --rm -v $PWD:/project -w /project espressif/idf:tinyusb python tools/build.py ${{ matrix.arg }}
6564
else
6665
python tools/build.py -s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ steps.set-one-per-family.outputs.build_option }} ${{ matrix.arg }}
6766
fi

.github/workflows/hil_test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,14 @@ jobs:
9090
# ---------------------------------------
9191
# Hardware in the loop (HIL)
9292
# self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json
93+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
9394
# ---------------------------------------
9495
hil-hfp:
95-
if: github.repository_owner == 'hathach'
96+
if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
9697
runs-on: [self-hosted, Linux, X64, hifiphile]
97-
#env:
98-
# IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
98+
env:
99+
IAR_LMS_CLOUD_URL: ${{ vars.IAR_LMS_CLOUD_URL }}
100+
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
99101
steps:
100102
- name: Clean workspace
101103
run: |
@@ -104,7 +106,9 @@ jobs:
104106
mkdir -p "${{ github.workspace }}"
105107
106108
- name: Toolchain version
107-
run: iccarm --version
109+
run: |
110+
echo IAR_LMS_CLOUD_URL=$IAR_LMS_CLOUD_URL
111+
iccarm --version
108112
109113
- name: Checkout TinyUSB
110114
uses: actions/checkout@v4

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ cmake-build-*
3737
sdkconfig
3838
.PVS-Studio
3939
.vscode/
40-
build/
40+
build
41+
CMakeFiles
42+
Debug
43+
RelWithDebInfo
44+
Release
45+
BrowseInfo
46+
.cmake_build

.idea/cmake.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.17)
1+
cmake_minimum_required(VERSION 3.20)
22

33
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
44
include(${CMAKE_CURRENT_SOURCE_DIR}/../hw/bsp/family_support.cmake)

0 commit comments

Comments
 (0)