Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ab523d

Browse files
Jason2866lucasssvaz
andauthored
Backport: changes to compile v3.1.x as component of IDF branch release/v5.3 (#11359)
* changes to compile as component of IDF branch release/v5.3 * Update esp32-hal-i2c-slave.c * fix(runners): Use latest ubuntu image --------- Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
1 parent dbfde15 commit 0ab523d

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

‎.github/workflows/build_py_tools.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
find-changed-tools:
1414
name: Check if tools have been changed
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
outputs:
1717
any_changed: ${{ steps.verify-changed-files.outputs.any_changed }}
1818
all_changed_files: ${{ steps.verify-changed-files.outputs.all_changed_files }}
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
fail-fast: false
5757
matrix:
58-
os: [windows-latest, macos-latest, ubuntu-20.04, ARM]
58+
os: [windows-latest, macos-latest, ubuntu-latest, ARM]
5959
include:
6060
- os: windows-latest
6161
TARGET: win64
@@ -64,7 +64,7 @@ jobs:
6464
- os: macos-latest
6565
TARGET: macos
6666
SEPARATOR: ":"
67-
- os: ubuntu-20.04
67+
- os: ubuntu-latest
6868
TARGET: linux-amd64
6969
SEPARATOR: ":"
7070
- os: ARM

‎.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
needs.gen-chunks.outputs.build_all == 'true' ||
238238
needs.gen-chunks.outputs.build_libraries == 'true' ||
239239
needs.gen-chunks.outputs.build_idf == 'true'
240-
runs-on: ubuntu-20.04
240+
runs-on: ubuntu-latest
241241
strategy:
242242
fail-fast: false
243243
matrix:

‎cores/esp32/esp32-hal-i2c-slave.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,12 @@ esp_err_t i2cSlaveInit(uint8_t num, int sda, int scl, uint16_t slaveID, uint32_t
335335
}
336336
#endif // !defined(CONFIG_IDF_TARGET_ESP32P4)
337337

338+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 3)
339+
i2c_ll_set_mode(i2c->dev, I2C_BUS_MODE_SLAVE);
340+
i2c_ll_enable_pins_open_drain(i2c->dev, true);
341+
#else
338342
i2c_ll_slave_init(i2c->dev);
343+
#endif
339344
i2c_ll_slave_set_fifo_mode(i2c->dev, true);
340345
i2c_ll_set_slave_addr(i2c->dev, slaveID, false);
341346
i2c_ll_set_tout(i2c->dev, I2C_LL_MAX_TIMEOUT);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /