Skip to content

Commit 95cf702

Browse files
committed
Merge branch 'master' of github.com:rvbc1/esp32-arduino-lib-builder into aflx4
2 parents d87c7a8 + 53a318f commit 95cf702

File tree

8 files changed

+174
-100
lines changed

8 files changed

+174
-100
lines changed

.github/workflows/cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
# lib_builder_branch: "release/v5.1"
3737
# targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2"
3838
# - idf_branch: "release/v5.3"
39-
# lib_builder_branch: "master"
39+
# lib_builder_branch: "release/v5.3"
4040
# targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2,esp32p4"
4141
- idf_branch: "release/v5.4"
4242
lib_builder_branch: "master"
4343
targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2,esp32p4"
44-
- idf_branch: "master"
44+
- idf_branch: "release/v5.5"
4545
lib_builder_branch: "release/v5.5"
4646
targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2,esp32p4,esp32c5"

.github/workflows/docker.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,47 +26,52 @@ jobs:
2626
name: Build docker image and push if needed
2727
runs-on: ubuntu-latest
2828
steps:
29+
- name: Checkout
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
2932
# Depending on the branch/tag, set CLONE_BRANCH_OR_TAG variable (used in the Dockerfile
30-
# as a build arg) and TAG_NAME (used when tagging the image).
33+
# as a build arg) and DOCKER_TAGS (used when tagging the image).
3134
#
3235
# The following 3 steps cover the alternatives (tag, release branch, master branch):
3336
- name: Set variables (tags)
3437
if: ${{ github.ref_type == 'tag' }}
3538
run: |
3639
echo "CLONE_BRANCH_OR_TAG=$GITHUB_REF_NAME" >> $GITHUB_ENV
37-
echo "TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
40+
echo "DOCKER_TAGS=${{ env.DOCKERHUB_REPO }}:$GITHUB_REF_NAME" >> $GITHUB_ENV
3841
echo "URL=${{ github.server_url }}/${{ github.repository }}.git" >> $GITHUB_ENV
3942
4043
- name: Set variables (release branches)
4144
if: ${{ github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }}
4245
run: |
4346
echo "CLONE_BRANCH_OR_TAG=$GITHUB_REF_NAME" >> $GITHUB_ENV
44-
echo "TAG_NAME=release-${GITHUB_REF_NAME##release/}" >> $GITHUB_ENV
47+
echo "DOCKER_TAGS=${{ env.DOCKERHUB_REPO }}:release-${GITHUB_REF_NAME##release/}" >> $GITHUB_ENV
4548
echo "URL=${{ github.server_url }}/${{ github.repository }}.git" >> $GITHUB_ENV
4649
4750
- name: Set variables (main branch)
4851
if: ${{ github.ref_type == 'branch' && github.ref_name == 'master' }}
4952
run: |
53+
source ./tools/config.sh
5054
echo "CLONE_BRANCH_OR_TAG=master" >> $GITHUB_ENV
51-
echo "TAG_NAME=latest" >> $GITHUB_ENV
55+
echo "DOCKER_TAGS<<EOF" >> $GITHUB_ENV
56+
echo "${{ env.DOCKERHUB_REPO }}:latest" >> $GITHUB_ENV
57+
echo "${{ env.DOCKERHUB_REPO }}:release-${IDF_BRANCH##release/}" >> $GITHUB_ENV
58+
echo "EOF" >> $GITHUB_ENV
5259
echo "URL=${{ github.server_url }}/${{ github.repository }}.git" >> $GITHUB_ENV
5360
5461
- name: Set variables (pull requests)
5562
if: ${{ github.event_name == 'pull_request' }}
5663
run: |
5764
echo "CLONE_BRANCH_OR_TAG=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
58-
echo "TAG_NAME=PR_${{ github.event.number }}" >> $GITHUB_ENV
65+
echo "DOCKER_TAGS=${{ env.DOCKERHUB_REPO }}:PR_${{ github.event.number }}" >> $GITHUB_ENV
5966
echo "URL=${{ github.server_url }}/${{ github.event.pull_request.head.repo.full_name }}.git" >> $GITHUB_ENV
6067
6168
# Display the variables set above, just in case.
6269
- name: Check variables
6370
run: |
6471
echo "CLONE_BRANCH_OR_TAG: $CLONE_BRANCH_OR_TAG"
65-
echo "TAG_NAME: $TAG_NAME"
6672
echo "URL: $URL"
67-
68-
- name: Checkout
69-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73+
echo "DOCKER_TAGS:"
74+
echo "$DOCKER_TAGS"
7075
7176
- name: Login to Docker Hub
7277
if: ${{ github.event_name == 'push' }}
@@ -86,7 +91,8 @@ jobs:
8691
with:
8792
context: tools/docker
8893
push: ${{ github.event_name == 'push' }}
89-
tags: ${{ env.DOCKERHUB_REPO }}:${{ env.TAG_NAME }}
94+
tags: |
95+
${{ env.DOCKER_TAGS }}
9096
platforms: ${{ env.BUILD_PLATFORMS }}
9197
build-args: |
9298
LIBBUILDER_CLONE_URL=${{ env.URL }}

components/arduino_tinyusb/patches/dcd_dwc2.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
dwc2_regs_t* dwc2 = DWC2_REG(rhport);
2020
const uint8_t epnum = tu_edpt_number(p_endpoint_desc->bEndpointAddress);
2121
@@ -266,7 +277,18 @@
22-
depctl.bm.set_data0_iso_even = 1;
22+
depctl.set_data0_iso_even = 1;
2323
}
2424
if (dir == TUSB_DIR_IN) {
25-
- depctl.bm.tx_fifo_num = epnum;
26-
+ //depctl.bm.tx_fifo_num = epnum;
25+
- depctl.tx_fifo_num = epnum;
26+
+ //depctl.tx_fifo_num = epnum;
2727
+ uint8_t fifo_num = epnum;
2828
+#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
2929
+ // Special Case for EP5, which is used by CDC but not actually called by the driver
@@ -34,7 +34,7 @@
3434
+ fifo_num = get_free_fifo();
3535
+ }
3636
+#endif
37-
+ depctl.bm.tx_fifo_num = fifo_num;
37+
+ depctl.tx_fifo_num = fifo_num;
3838
}
3939

4040
dwc2_dep_t* dep = &dwc2->ep[dir == TUSB_DIR_IN ? 0 : 1][epnum];
@@ -56,9 +56,9 @@
5656
+#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
5757
+ _allocated_fifos = 1;
5858
+#endif
59+
60+
usbd_spin_lock(true);
5961
handle_bus_reset(rhport);
60-
}
61-
6262
@@ -1008,7 +1037,11 @@
6363

6464
if (gintsts & GINTSTS_USBSUSP) {

0 commit comments

Comments
 (0)