Skip to content
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

Merge pull request hathach#1953 from tannewt/fix_cached_imx_reset #1

Merged
merged 46 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
787afbb
Initialized all RCC init structs for all STM32H7 BSP variants as empty
branalba Feb 28, 2023
8c8f26f
In some STM32H7 BSP variants, initialized RCC_PeriphCLKInitStruct ins…
branalba Feb 28, 2023
b7fa90e
rp2040: Fixup lib and example compile for LLVM Embedded Toolchain for…
kilograham Mar 2, 2023
e92583f
try adding build for windows and macos
hathach Mar 3, 2023
9a8a935
use make abspath intead of shell realpath
hathach Mar 3, 2023
7089535
clean up f0 warnings
hathach Mar 3, 2023
363fcc5
only build 1 board on windows/macos
hathach Mar 3, 2023
a99ee1b
bump up gcc, test macos uname
hathach Mar 4, 2023
b4ef98c
fix ci build on windows
hathach Mar 5, 2023
8a49348
more ci test
hathach Mar 5, 2023
9824981
ignore mkdir in windows ci
hathach Mar 5, 2023
0a1a61b
try gcc 12.2 with macos
hathach Mar 5, 2023
956d1c9
update size to fix macos ci
hathach Mar 6, 2023
5c537c2
change gcc to 10.3 due to freeRTOS warning
hathach Mar 6, 2023
9930863
fix iar ci
hathach Mar 6, 2023
b6404d1
clean up top
hathach Mar 6, 2023
e62d1a0
integrate top.mk into make.mk
hathach Mar 6, 2023
02478c5
more ci fix
hathach Mar 6, 2023
ec8c292
clean up
hathach Mar 6, 2023
66da95a
Merge pull request #1938 from hathach/update-build
hathach Mar 6, 2023
3387c86
Merge pull request #1933 from kilograham/rp2040_llvm_tweaks
hathach Mar 6, 2023
9e0ae5f
improve ci
hathach Mar 8, 2023
0957902
more ci merge
hathach Mar 8, 2023
be66f5f
Merge pull request #1941 from hathach/minor-ci
hathach Mar 8, 2023
990fb6a
Merge pull request #1931 from branalba/master
hathach Mar 9, 2023
f0ddf8d
dcd_nrf5x: ISO OUT handling
kasjer Mar 9, 2023
76f43a7
starting to remove submodule cmsis5 and nrfx
hathach Mar 10, 2023
d41320a
adding python script to manage dependencies instead of submodule
hathach Mar 10, 2023
7c9bd81
update deps script
hathach Mar 10, 2023
fb9180b
remove most of the submodules
hathach Mar 10, 2023
7e6a6e7
remove the rest of mcu submodules
hathach Mar 10, 2023
704f3dd
add dependencies repo to git ignore
hathach Mar 10, 2023
206a9a2
fix ci
hathach Mar 10, 2023
4857abd
rp2040: include hardware/sync.h explicitly
dhalbert Mar 10, 2023
b5b2fad
Merge pull request #1946 from kasjer/kasjer/nrf5x-fix-iso-memory-corr…
hathach Mar 11, 2023
6af18dc
Merge pull request #1947 from hathach/remove-submodules
hathach Mar 11, 2023
cae05c6
update get-deps.py
hathach Mar 11, 2023
a8d7e08
Merge pull request #1950 from hathach/update-get-deps
hathach Mar 11, 2023
be21413
Merge pull request #1948 from dhalbert/remove-volatile-cast-include
hathach Mar 11, 2023
f6774d5
Implemented tuh_hid_send_report
Tails86 Feb 8, 2023
296ce52
Updated host hid_controller example to demo tuh_hid_send_report
Tails86 Feb 10, 2023
4377080
Removed tabs from host hid_controller example
Tails86 Feb 10, 2023
9247131
Avoid spamming out endpoint on connect
Tails86 Feb 10, 2023
7cf67b2
Merge pull request #1889 from Tails86/master
hathach Mar 13, 2023
d31aac4
Flush the dcd data on reset
tannewt Mar 13, 2023
ea8ecea
Merge pull request #1953 from tannewt/fix_cached_imx_reset
hathach Mar 14, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/build_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/checkout@v3

- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip lib/sct_neopixel
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip

- name: Checkout hathach/linkermap
uses: actions/checkout@v3
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`

- name: Get Dependencies
run: python3 tools/get_dependencies.py ${{ matrix.family }}
run: python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
Expand Down
42 changes: 14 additions & 28 deletions .github/workflows/build_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,22 @@ jobs:
# Alphabetical order
- 'broadcom_32bit'
- 'imxrt'
- 'lpc15'
- 'lpc18'
- 'lpc54'
- 'lpc55'
- 'mm32'
- 'msp432e4'
- 'lpc15 lpc18'
- 'lpc54 lpc55'
- 'mm32 msp432e4'
- 'nrf'
- 'rp2040'
- 'samd11'
- 'samd21'
- 'samd51'
- 'saml2x'
- 'stm32f0'
- 'stm32f1'
- 'stm32f0 stm32f1'
- 'stm32f4'
- 'stm32f7'
- 'stm32g4'
- 'stm32g4 stm32wb'
- 'stm32h7'
- 'stm32l4'
- 'stm32wb'
- 'tm4c123'
- 'xmc4000'
- 'tm4c123 xmc4000'
steps:
- name: Setup Python
uses: actions/setup-python@v4
Expand All @@ -71,7 +65,7 @@ jobs:
uses: actions/checkout@v3

- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip lib/sct_neopixel
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip

- name: Checkout hathach/linkermap
uses: actions/checkout@v3
Expand All @@ -86,7 +80,7 @@ jobs:
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk

- name: Get Dependencies
run: python3 tools/get_dependencies.py ${{ matrix.family }}
run: python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
Expand All @@ -100,29 +94,21 @@ jobs:
find ${ex} -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
done

# Upload binaries for rp2040 hardware test with self-hosted
# Upload binaries for rp2040/stm32l412nucleo hardware test with self-hosted

- name: Prepare rp2040 Artifacts
if: matrix.family == 'rp2040' && github.repository_owner == 'hathach'
run: find examples/ -name "*.elf" -exec mv {} . \;

- name: Upload rp2040 Artifacts
if: matrix.family == 'rp2040' && github.repository_owner == 'hathach'
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.family }}
path: |
*.elf

# Upload binaries for stm32l412nucleo hardware test with self-hosted
- name: Prepare stm32l412nucleo Artifacts
if: matrix.family == 'stm32l4'
run: find examples/ -path "*stm32l412nucleo/*.elf" -exec mv {} . \;

- name: Upload stm32l412nucleo Artifacts
if: matrix.family == 'stm32l4'
- name: Upload Artifacts for hardware testing
if: matrix.family == 'stm32l4' || (matrix.family == 'rp2040' && github.repository_owner == 'hathach')
uses: actions/upload-artifact@v3
with:
name: stm32l412nucleo
name: ${{ matrix.family }}
path: |
*.elf

Expand Down Expand Up @@ -244,7 +230,7 @@ jobs:
- name: Download stm32l4 Artifacts
uses: actions/download-artifact@v3
with:
name: stm32l412nucleo
name: stm32l4

- name: Create flash.sh
run: |
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/build_iar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ jobs:

- name: Checkout submodules and dependencies
run: |
git submodule update --init lib/FreeRTOS-Kernel lib/lwip lib/sct_neopixel
python3 tools/get_dependencies.py ${{ matrix.family }}

#- name: Checkout pico-sdk for rp2040
# if: matrix.family == 'rp2040'
# run: |
# git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
# echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
git submodule update --init lib/FreeRTOS-Kernel lib/lwip
python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm
2 changes: 1 addition & 1 deletion .github/workflows/build_msp430.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`

- name: Get Dependencies
run: python3 tools/get_dependencies.py ${{ matrix.family }}
run: python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_renesas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`

- name: Get Dependencies
run: python3 tools/get_dependencies.py ${{ matrix.family }}
run: python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`

- name: Get Dependencies
run: python3 tools/get_dependencies.py ${{ matrix.family }}
run: python3 tools/get_family_deps.py ${{ matrix.family }}

- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/build_win_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build Windows/MacOS

on:
push:
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
- '.github/workflows/build_win_mac.yml'
pull_request:
branches: [ master ]
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
- '.github/workflows/build_win_mac.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
# ---------------------------------------
# Build ARM family
# ---------------------------------------
build-arm:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install ARM GCC
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'

- name: Checkout TinyUSB
uses: actions/checkout@v3

- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip

- name: Get Dependencies
run: python3 tools/get_family_deps.py stm32f4

- name: Build
run: python3 tools/build_family.py stm32f4 stm32f411disco
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,57 @@ cov-int
/_bin/
__pycache__

# submodules
hw/mcu/allwinner
hw/mcu/bridgetek/ft9xx/ft90x-sdk
hw/mcu/broadcom
hw/mcu/gd/nuclei-sdk
hw/mcu/infineon/mtb-xmclib-cat3
hw/mcu/microchip
hw/mcu/mindmotion/mm32sdk
hw/mcu/nordic/nrfx
hw/mcu/nuvoton
hw/mcu/nxp/lpcopen
hw/mcu/nxp/mcux-sdk
hw/mcu/nxp/nxp_sdk
hw/mcu/raspberry_pi/Pico-PIO-USB
hw/mcu/renesas/rx
hw/mcu/silabs/cmsis-dfp-efm32gg12b
hw/mcu/sony/cxd56/spresense-exported-sdk
hw/mcu/st/cmsis_device_f0
hw/mcu/st/cmsis_device_f1
hw/mcu/st/cmsis_device_f2
hw/mcu/st/cmsis_device_f3
hw/mcu/st/cmsis_device_f4
hw/mcu/st/cmsis_device_f7
hw/mcu/st/cmsis_device_g0
hw/mcu/st/cmsis_device_g4
hw/mcu/st/cmsis_device_h7
hw/mcu/st/cmsis_device_l0
hw/mcu/st/cmsis_device_l1
hw/mcu/st/cmsis_device_l4
hw/mcu/st/cmsis_device_l5
hw/mcu/st/cmsis_device_u5
hw/mcu/st/cmsis_device_wb
hw/mcu/st/stm32f0xx_hal_driver
hw/mcu/st/stm32f1xx_hal_driver
hw/mcu/st/stm32f2xx_hal_driver
hw/mcu/st/stm32f3xx_hal_driver
hw/mcu/st/stm32f4xx_hal_driver
hw/mcu/st/stm32f7xx_hal_driver
hw/mcu/st/stm32g0xx_hal_driver
hw/mcu/st/stm32g4xx_hal_driver
hw/mcu/st/stm32h7xx_hal_driver
hw/mcu/st/stm32l0xx_hal_driver
hw/mcu/st/stm32l1xx_hal_driver
hw/mcu/st/stm32l4xx_hal_driver
hw/mcu/st/stm32l5xx_hal_driver
hw/mcu/st/stm32u5xx_hal_driver
hw/mcu/st/stm32wbxx_hal_driver
hw/mcu/ti
hw/mcu/wch/ch32v307
lib/CMSIS_5
lib/FreeRTOS-Kernel
lib/lwip
lib/sct_neopixel
tools/uf2
Loading