8000 Merge branch 'master' into master · espressif/arduino-esp32@9fbe842 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fbe842

Browse files
authored
Merge branch 'master' into master
2 parents 75c3d2d + cceebb5 commit 9fbe842
  • cores/esp32
  • docs
  • idf_component_examples/Hello_world
  • libraries
  • Some content is hidden

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

    3,001 files changed

    +434879
    -381435
    lines changed
    Lines changed: 62 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,62 @@
    1+
    name: Feature request
    2+
    description: Suggest an idea for this project
    3+
    labels: ["Type: Feature request"]
    4+
    body:
    5+
    - type: markdown
    6+
    attributes:
    7+
    value: |
    8+
    * We welcome any ideas or feature requests! It is helpful if you can explain exactly why the feature would be useful.
    9+
    * There are usually some outstanding feature requests in the [existing issues list](https://github.com/espressif/arduino-esp32/issues?q=is%3Aopen+is%3Aissue+label%3A%22Type%3A+Feature+request%22), feel free to add comments to them.
    10+
    * If you would like to contribute, please read the [contributions guide](https://docs.espressif.com/projects/arduino-esp32/en/latest/contributing.html).
    11+
    - type: input
    12+
    id: Area
    13+
    attributes:
    14+
    label: Related area
    15+
    description: Please briefly explain the area of your Feature Request.
    16+
    placeholder: eg. Board support, specific Peripheral, BT, Wifi...
    17+
    validations:
    18+
    required: true
    19+
    - type: input
    20+
    id: HW
    21+
    attributes:
    22+
    label: Hardware specification
    23+
    description: Please provide if your proposal depends on specific Hardware.
    24+
    placeholder: eg. Support for ESP32 DevKitC, ESP32-C3 DevKitM...
    25+
    validations:
    26+
    required: true
    27+
    - type: textarea
    28+
    id: problem-related
    29+
    attributes:
    30+
    label: Is your feature request related to a problem?
    31+
    description: Please provide a clear and concise description of what the problem is. Add relevant issue link.
    32+
    placeholder: ex. I'm facing the issue/missing function...
    33+
    validations:
    34+
    required: true
    35+
    - type: textarea
    36+
    id: solution
    37+
    attributes:
    38+
    label: Describe the solution you'd like
    39+
    description: Please provide a clear and concise description of what you want to happen.
    40+
    placeholder: ex. When using this function...
    41+
    validations:
    42+
    required: true
    43+
    - type: textarea
    44+
    id: alternatives
    45+
    attributes:
    46+
    label: Describe alternatives you've considered
    47+
    description: Please provide a clear and concise description of any alternative solutions or features you've considered.
    48+
    placeholder: ex. Choosing other approach wouldn't work, because...
    49+
    - type: textarea
    50+
    id: context
    51+
    attributes:
    52+
    label: Additional context
    53+
    description: Please add any other context or screenshots about the feature request here.
    54+
    placeholder: ex. This would work only when ...
    55+
    - type: checkboxes
    56+
    id: confirmation
    57+
    attributes:
    58+
    label: I have checked existing list of Feature requests and the Contribution Guide
    59+
    description: You agree to check all the resources above before opening a new Feature request.
    60+
    options:
    61+
    - label: I confirm I have checked existing list of Feature requests and Contribution Guide.
    62+
    required: true
    Lines changed: 144 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,144 @@
    1+
    name: Issue report
    2+
    description: Report any problem here
    3+
    labels: ["Status: Awaiting triage"]
    4+
    body:
    5+
    - type: markdown
    6+
    attributes:
    7+
    value: |
    8+
    * Before reporting a new issue please check and search in [List of existing issues](https://github.com/espressif/arduino-esp32/issues?q=is%3Aissue)
    9+
    * Please check [Online Documentation](https://docs.espressif.com/projects/arduino-esp32/en/latest/index.html)
    10+
    * Take a look on [Troubleshooting guide](https://docs.espressif.com/projects/arduino-esp32/en/latest/troubleshooting.html)
    11+
    * If still experiencing the issue, please provide as many details as possible below about your hardware, computer setup and code.
    12+
    - type: input
    13+
    id: Board
    14+
    attributes:
    15+
    label: Board
    16+
    description: On which Board does this issue occur?
    17+
    placeholder: eg. ESP32 Dev Module, ESP32-S2, LilyGo TTGO LoRa32...
    18+
    validations:
    19+
    required: true
    20+
    - type: textarea
    21+
    id: devboard
    22+
    attributes:
    23+
    label: Device Description
    24+
    description: What development board or other hardware is the chip attached to?
    25+
    placeholder: ex. DevKitC, plain module on breadboard, etc. If your hardware is custom or unusual, please attach a photo.
    26+
    validations:
    27+
    required: true
    28+
    - type: textarea
    29+
    id: other-hw
    30+
    attributes:
    31+
    label: Hardware Configuration
    32+
    description: Is anything else attached to the development board?
    33+
    placeholder: ex. GPIO 18 & 19 are connected to I2C devices.
    34+
    validations:
    35+
    required: true
    36+
    - type: dropdown
    37+
    id: version
    38+
    attributes:
    39+
    label: Version
    40+
    description: What version of Arduino ESP32 are you running? If possible, consider updating to the latest version.
    41+
    options:
    42+
    - latest master (checkout manually)
    43+
    - latest development Release Candidate (RC-X)
    44+
    - v2.0.14
    45+
    - v2.0.13
    46+
    - v2.0.12
    47+
    - v2.0.11
    48+
    - v2.0.10
    49+
    - v2.0.9
    50+
    - v2.0.8
    51+
    - v2.0.7
    52+
    - v2.0.6
    53+
    - v2.0.5
    54+
    - v2.0.4
    55+
    - v2.0.3
    56+
    - v2.0.2
    57+
    - v2.0.1
    58+
    - v2.0.0
    59+
    - v1.0.6
    60+
    - other
    61+
    validations:
    62+
    required: true
    63+
    - type: input
    64+
    id: IDE
    65+
    attributes:
    66+
    label: IDE Name
    67+
    description: What IDE are you using?
    68+
    placeholder: eg. Arduino IDE, PlatformIO, Sloeber...
    69+
    validations:
    70+
    required: true
    71+
    - type: input
    72+
    id: os
    73+
    attributes:
    74+
    label: Operating System
    75+
    description: On which OS does this issue occur?
    76+
    placeholder: ex. macOS 12.1, Windows 10...
    77+
    validations:
    78+
    required: true
    79+
    - type: input
    80+
    id: Flash
    81+
    attributes:
    82+
    label: Flash frequency
    83+
    description: What flash frequency is used?
    84+
    placeholder: eg. 40Mhz
    85+
    validations:
    86+
    required: true
    87+
    - type: dropdown
    88+
    id: PSRAM
    89+
    attributes:
    90+
    label: PSRAM enabled
    91+
    description: Is PSRAM enabled?
    92+
    options:
    93+
    - 'yes'
    94+
    - 'no'
    95+
    validations:
    96+
    required: true
    97+
    - type: input
    98+
    id: Upload
    99+
    attributes:
    100+
    label: Upload speed
    101+
    description: What upload speed is used?
    102+
    placeholder: eg. 115200
    103+
    validations:
    104+
    required: true
    105+
    - type: textarea
    106+
    id: Description
    107+
    attributes:
    108+
    label: Description
    109+
    description: Please describe your problem here and expected behaviour
    110+
    placeholder: ex. Can't connect/weird behaviour/wrong function/missing parameter..
    111+
    validations:
    112+
    required: true
    113+
    - type: textarea
    114+
    id: sketch
    115+
    attributes:
    116+
    label: Sketch
    117+
    description: Please provide full minimal sketch/code which can be run to reproduce your issue
    118+
    placeholder: ex. Related part of the code to replicate the issue
    119+
    render: cpp
    120+
    validations:
    121+
    required: true
    122+
    - type: textarea
    123+
    id: Debug
    124+
    attributes:
    125+
    label: Debug Message
    126+
    description: Please provide a debug message or error message. If you have a Guru Meditation Error or Backtrace, please decode it with [ExceptionDecoder](https://github.com/me-no-dev/EspExceptionDecoder)
    127+
    placeholder: Enable Core debug level - Debug on tools menu of Arduino IDE, then put the serial output here.
    128+
    render: plain
    129+
    validations:
    130+
    required: true
    131+
    - type: textarea
    132+
    id: other-remarks
    133+
    attributes:
    134+
    label: Other Steps to Reproduce
    135+
    description: Is there any other information you can think of which will help us reproduce this problem? Any additional info can be added as well.
    136+
    placeholder: ex. I also tried on other OS, HW...it works correctly on that setup.
    137+
    - type: checkboxes
    138+
    id: confirmation
    139+
    attributes:
    140+
    label: I have checked existing issues, online documentation and the Troubleshooting Guide
    141+
    description: You agree to check all the resources above before opening a new issue.
    142+
    options:
    143+
    - label: I confirm I have checked existing issues, online documentation and Troubleshooting guide.
    144+
    required: true

    .github/ISSUE_TEMPLATE/bug_report.md

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

    .github/ISSUE_TEMPLATE/config.yml

    Lines changed: 8 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,8 @@
    1+
    blank_issues_enabled: false
    2+
    contact_links:
    3+
    - name: Arduino ESP32 Gitter Channel
    4+
    url: https://gitter.im/espressif/arduino-esp32
    5+
    about: Community channel for questions and help
    6+
    - name: ESP32 Forum - Arduino
    7+
    url: https://esp32.com/viewforum.php?f=19
    8+
    about: Official Forum for questions

    .github/PULL_REQUEST_TEMPLATE.md

    Lines changed: 24 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,24 @@
    1+
    *By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes*
    2+
    3+
    ### Checklist
    4+
    1. [ ] Please provide specific title of the PR describing the change, including the component name (*eg. „Update of Documentation link on Readme.md“*)
    5+
    2. [ ] Please provide related links (*eg. Issue which will be closed by this Pull Request*)
    6+
    3. [ ] Please **update relevant Documentation** if applicable
    7+
    4. [ ] Please check [Contributing guide](https://docs.espressif.com/projects/arduino-esp32/en/latest/contributing.html)
    8+
    5. [ ] Please **confirm option to "Allow edits and access to secrets by maintainers"** when opening a Pull Request
    9+
    10+
    *This entire section above can be deleted if all items are checked.*
    11+
    12+
    -----------
    13+
    ## Description of Change
    14+
    Please describe your proposed Pull Request and it's impact.
    15+
    16+
    ## Tests scenarios
    17+
    Please describe on what Hardware and Software combinations you have tested this Pull Request and how.
    18+
    19+
    (*eg. I have tested my Pull Request on Arduino-esp32 core v2.0.2 with ESP32 and ESP32-S2 Board with this scenario*)
    20+
    21+
    ## Related links
    22+
    Please provide links to related issue, PRs etc.
    23+
    24+
    (*eg. Closes #number of issue*)

    .github/pytools/Sign-File.ps1

    Lines changed: 78 additions & 0 deletions
    17AE
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,78 @@
    1+
    [CmdletBinding()]
    2+
    param (
    3+
    [Parameter()]
    4+
    [String]
    5+
    $Path
    6+
    )
    7+
    8+
    9+
    function FindSignTool {
    10+
    $SignTool = "signtool.exe"
    11+
    if (Get-Command $SignTool -ErrorAction SilentlyContinue) {
    12+
    return $SignTool
    13+
    }
    14+
    $SignTool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64\signtool.exe"
    15+
    if (Test-Path -Path $SignTool -PathType Leaf) {
    16+
    return $SignTool
    17+
    }
    18+
    $SignTool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x86\signtool.exe"
    19+
    if (Test-Path -Path $SignTool -PathType Leaf) {
    20+
    return $SignTool
    21+
    }
    22+
    $sdkVers = "10.0.22000.0", "10.0.20348.0", "10.0.19041.0", "10.0.17763.0"
    23+
    Foreach ($ver in $sdkVers)
    24+
    {
    25+
    $SignTool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\${ver}\x64\signtool.exe"
    26+
    if (Test-Path -Path $SignTool -PathType Leaf) {
    27+
    return $SignTool
    28+
    }
    29+
    }
    30+
    "signtool.exe not found"
    31+
    Exit 1
    32+
    }
    33+
    34+
    function SignEsptool {
    35+
    param(
    36+
    [Parameter()]
    37+
    [String]
    38+
    $Path
    39+
    )
    40+
    41+
    $SignTool = FindSignTool
    42+
    "Using: $SignTool"
    43+
    $CertificateFile = [system.io.path]::GetTempPath() + "certificate.pfx"
    44+
    45+
    if ($null -eq $env:CERTIFICATE) {
    46+
    "CERTIFICATE variable not set, unable to sign the file"
    47+
    Exit 1
    48+
    }
    49+
    50+
    if ("" -eq $env:CERTIFICATE) {
    51+
    "CERTIFICATE variable is empty, unable to sign the file"
    52+
    Exit 1
    53+
    }
    54+
    55+
    $SignParameters = @("sign", "/tr", 'http://timestamp.digicert.com', "/td", "SHA256", "/f", $CertificateFile, "/fd", "SHA256")
    56+
    if ($env:CERTIFICATE_PASSWORD) {
    57+
    "CERTIFICATE_PASSWORD detected, using the password"
    58+
    $SignParameters += "/p"
    59+
    $SignParameters += $env:CERTIFICATE_PASSWORD
    60+
    }
    61+
    $SignParameters += $Path
    62+
    63+
    [byte[]]$CertificateBytes = [convert]::FromBase64String($env:CERTIFICATE)
    64+
    [IO.File]::WriteAllBytes($CertificateFile, $CertificateBytes)
    65+
    66+
    &$SignTool $SignParameters
    67+
    68+
    if (0 -eq $LASTEXITCODE) {
    69+
    Remove-Item $CertificateFile
    70+
    } else {
    71+
    Remove-Item $CertificateFile
    72+
    "Signing failed"
    73+
    Exit 1
    74+
    }
    75+
    76+
    }
    77+
    78+
    SignEsptool ${Path}

    .github/pytools/espressif.ico

    115 KB
    Binary file not shown.

    .github/scripts/check-cmakelists.sh

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,6 +1,6 @@
    11
    #!/bin/bash
    22
    #
    3-
    # This script is for Travis. It checks all non-examples source files in libraries/ and cores/ are listed in
    3+
    # This script is used in the CI workflow. It checks all non-examples source files in libraries/ and cores/ are listed in
    44
    # CMakeLists.txt for the cmake-based IDF component
    55
    #
    66
    # If you see an error running this script, edit CMakeLists.txt and add any new source files into your PR
    @@ -15,9 +15,9 @@ git submodule update --init --recursive
    1515
    REPO_SRCS=`find cores/esp32/ libraries/ -name 'examples' -prune -o -name '*.c' -print -o -name '*.cpp' -print | sort`
    1616

    1717
    # find all source files named in CMakeLists.txt COMPONENT_SRCS
    18-
    CMAKE_SRCS=`cmake --trace-expand -C CMakeLists.txt 2>&1 | grep COMPONENT_SRCS | sed 's/.\+COMPONENT_SRCS //' | sed 's/ )//' | tr ' ;' '\n' | sort`
    18+
    CMAKE_SRCS=`cmake --trace-expand -P CMakeLists.txt 2>&1 | grep set\(srcs | cut -d'(' -f3 | sed 's/ )//' | sed 's/srcs //' | tr ' ;' '\n' | sort`
    1919

    20-
    if ! diff -u0 --label "Repo Files" --label "COMPONENT_SRCS" <(echo "$REPO_SRCS") <(echo "$CMAKE_SRCS"); then
    20+
    if ! diff -u0 --label "Repo Files" --label "srcs" <(echo "$REPO_SRCS") <(echo "$CMAKE_SRCS"); then
    2121
    echo "Source files in repo (-) and source files in CMakeLists.txt (+) don't match"
    2222
    echo "Edit CMakeLists.txt as appropriate to add/remove source files from COMPONENT_SRCS"
    2323
    exit 1

    0 commit comments

    Comments
     (0)
    0