Skip to content

Commit aaff27d

Browse files
authored
Merge pull request hathach#2058 from hathach/cmake-imxrt
Add Cmake for imxrt and Fix EHCI PortSC issue
2 parents 5e023fa + eaa159c commit aaff27d

File tree

56 files changed

+864
-355
lines changed

Some content is hidden

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

56 files changed

+864
-355
lines changed

.github/workflows/build_arm.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
family:
3434
# Alphabetical order
3535
- 'broadcom_32bit'
36-
- 'imxrt'
3736
- 'kinetis_k32 kinetis_kl'
3837
- 'lpc11 lpc13 lpc15 lpc17 lpc18'
3938
- 'lpc51 lpc54 lpc55'

.github/workflows/cmake_arm.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CMake ARM
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- 'examples/**'
8+
- 'lib/**'
9+
- 'hw/**'
10+
- '.github/workflows/cmake_arm.yml'
11+
pull_request:
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'examples/**'
16+
- 'lib/**'
17+
- 'hw/**'
18+
- '.github/workflows/cmake_arm.yml'
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# ---------------------------------------
26+
# Build ARM family
27+
# ---------------------------------------
28+
build-arm:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
family:
34+
# Alphabetical order
35+
- 'imxrt'
36+
steps:
37+
- name: Setup Python
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: '3.x'
41+
42+
- name: Install ARM GCC
43+
uses: carlosperate/arm-none-eabi-gcc-action@v1
44+
with:
45+
release: '11.2-2022.02'
46+
47+
- name: Install Ninja
48+
run: sudo apt install -y ninja-build
49+
50+
- name: Checkout TinyUSB
51+
uses: actions/checkout@v3
52+
53+
- name: Get Dependencies
54+
run: python3 tools/get_family_deps.py ${{ matrix.family }}
55+
56+
- name: Build
57+
run: python tools/build_cmake.py ${{ matrix.family }}

.idea/runConfigurations/rp2040.xml

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

.idea/runConfigurations/rt1010.xml

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

.idea/runConfigurations/rt1060_nxplink.xml

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

.idea/runConfigurations/tinyusb_examples.xml

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

.idea/vcs.xml

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

.readthedocs.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44

55
version: 2
66

7+
# Set the version of Python and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
13+
# Build documentation in the docs/ directory with Sphinx
714
sphinx:
815
configuration: docs/conf.py
916

17+
# Optionally declare the Python requirements required to build your docs
1018
python:
11-
version: 3.8
1219
install:
1320
- requirements: docs/requirements.txt
1421

cmake/cpu/cortex-m7.cmake

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

docs/info/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Controller Driver (DCD & HCD)
9393

9494
- CFG_TUD_ENABLED/CFG_TUH_ENABLED, CFG_TUD_MAX_SPEED/CFG_TUH_MAX_SPEED can be used to replace CFG_TUSB_RHPORT0_MODE/CFG_TUSB_RHPORT1_MODE
9595
- tud_init(rphort), tuh_init(rhport) can be used to init stack on specified roothub port (controller) instead of tusb_init(void)
96-
- Add dcd/hcd port specific defines TUP_ (stand for tinyusb port-specific)
96+
- Add dcd/hcd port specific defines `TUP_` (stand for tinyusb port-specific)
9797
- [dwc2]
9898

9999
- Update to support stm32 h72x, h73x with only 1 otg controller

0 commit comments

Comments
 (0)