Commit Graph

19605 Commits

Author SHA1 Message Date
Ivan Grokhotkov
1e2b1238c6 cbor: add a workaround for -ffreestanding being passed to clang
Toolchain CMake files for clang currently pass -ffreestanding option
to prevent clang from picking the wrong copy of stdint.h. This is a
temporary hack until we fix clang distributions to not include the
GCC version of stdint.h. This hack, however, results in setting
__STDC_HOSTED__=0, which is being checked by cbor header files,
making some required functions unavailable as a result.
Undefine __STDC_HOSTED__ as a workaround. This flag is only passed
when compiling cbor itself.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
81b97b9a6b spi_flash: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
370473b772 spiffs: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
3177df4986 cmake: temporarily silence additional warnings produced by clang 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
6bba3ea034 cmake: only add GCC-specific flags when building with GCC
There are probably more GCC-specific flags in component CMakeLists.txt
files; these are just the one being added for all the files.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
90a87cf5e4 cmake: don't run crosstool-version-check for clang
We will likely need to check clang version as well, eventually.
However at the moment clang builds change too often for such check
to be maintainable. Disable it for clang.
2021-09-16 10:54:27 +02:00
Ivan Grokhotkov
06c0b8a5d0 cmake: don't search for toolchain files in component directory
This feature was added when we thought that target components might be
added out of IDF tree. That never became possible, and with recent
changes in IDF architecture it is unlikely that this feature will be
necessary any time soon. Remove it, simplifying the code.
2021-09-16 10:54:27 +02:00
Ivan Grokhotkov
14e600801e cmake: allow selection of clang based toolchain
This is an experimental feature intended at the moment for ESP-IDF
developers only.

If IDF_TOOLCHAIN=clang environment variable or CMake variable is set,
use toolchain-clang-esp32xx.cmake instead of toolchain-esp32xx.cmake.

These changes aren't sufficient to actually build any IDF project with
clang; subsequent commits add a few workarounds required to do this.

Toolchain files are added for esp32 and esp32s2, which are the targets
supported in our llvm-project fork at the moment.
2021-09-16 10:54:27 +02:00
Shivani Tipnis
54e4aa9781 Merge branch 'bugfix/fix_nvstool_readme' into 'master'
Update Readme with supports of multiline strings and comments in the CSV file

Closes IDFGH-5434

See merge request espressif/esp-idf!15027
2021-09-16 07:51:15 +00:00
Shivani Tipnis
d8b1c3d44a nvs_tool: Update Readme with supports of multiline strings and comments in the CSV file
Closes https://github.com/espressif/esp-idf/issues/7175
2021-09-16 11:11:19 +05:30
Li Shuai
b59902f4d1 Merge branch 'bugfix/esp32s3_lightsleep_psram_leakage_current' into 'master'
fix SPIRAM leakage when its CS pin has no hardware pullup

See merge request espressif/esp-idf!14730
2021-09-16 04:07:58 +00:00
Zim Kalinowski
7bd62b660d Merge branch 'bugfix/fix_linux_host_example' into 'master'
[examples]: fixed linux host example

See merge request espressif/esp-idf!15154
2021-09-15 22:04:07 +00:00
Aditya Patwardhan
b1e73137f3 Merge branch 'fix/esp_mbedtls_write_api' into 'master'
Fix esp_mbedtls_write API

Closes IDFGH-5751

See merge request espressif/esp-idf!15171
2021-09-15 17:42:21 +00:00
Aditya Patwardhan
c6c2ea975f Fix esp_mbedtls_write API
Fix esp_wolfssl_write API
Closes https://github.com/espressif/esp-idf/issues/7461
2021-09-15 21:40:54 +05:30
Shu Chen
8f283421da Merge branch 'feature/ot_example_doc' into 'master'
openthread: enrich documentation for openthread examples

See merge request espressif/esp-idf!15156
2021-09-15 13:48:17 +00:00
David Čermák
09509e1bbe Merge branch 'bugfix/mqtt_pubconnect_test' into 'master'
MQTT: Publish connect test fix

See merge request espressif/esp-idf!14292
2021-09-15 13:34:58 +00:00
Jiang Jiang Jian
bd61d4dd70 Merge branch 'bugfix/fix_blufi_init_crash_c3' into 'master'
Blufi [Nimble] Add fix to crash while running blufi on ESP32C3

See merge request espressif/esp-idf!14414
2021-09-15 13:16:01 +00:00
Ondrej Kosta
61455ddc19 Merge branch 'feature/set_phy_loopback' into 'master'
esp_eth: add PHY loopback control via esp_eth_ioctl

Closes IDF-3865

See merge request espressif/esp-idf!15096
2021-09-15 13:07:21 +00:00
Li Shuai
c5b481c6da light sleep: fix Flash leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Li Shuai
af4f2075ac light sleep: fix SPIRAM leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Armando
ea10dacf68 mspi: add octal psram get_cs_io function 2021-09-15 20:34:18 +08:00
chenjianqiang
9b53e18c44 add flash and PSRAM CS IO acquire function 2021-09-15 20:34:17 +08:00
Shu Chen
c09633d41b openthread: enrich documentation for openthread examples 2021-09-15 15:44:07 +08:00
Wang Fang
e43df5fce9 Merge branch 'docs/update_devkitc_and_wrover_kit_boards' into 'master'
docs: udpate devkitc and wrover-kit boards

Closes DOC-1241, DOC-1195, and DOC-1927

See merge request espressif/esp-idf!14945
2021-09-15 07:27:55 +00:00
Sudeep Mohanty
7eb75428d5 Merge branch 'feature/freertos-upgrade-to-10.4.3-FreeRTOSConfig.h-location-update' into 'master'
freertos: updated the location of FreeRTOSConfig.h

Closes IDF-3721

See merge request espressif/esp-idf!15119
2021-09-15 07:11:12 +00:00
David Cermak
00b1170588 CI: Update mqtt test to cleanup connect-publish-URI interaction 2021-09-15 15:07:12 +08:00
Euripedes Rocha
999710fd6a Docs: Fix Typo in license version
- Typo in Apache License version for ESP_MQTT

Merges https://github.com/espressif/esp-idf/issues/7311
2021-09-15 15:07:12 +08:00
Euripedes Rocha
307eb5f17f [MQTT/test] Fix publish connect test
- Mqtt client will return error on wrong parameters. This fix the test
  code to setup the client for each test case.
2021-09-15 15:07:12 +08:00
David Čermák
29fac4faa0 Merge branch 'bugfix/tcp_transport_null_deref' into 'master'
tcp_transport: Fix NULL pointer deference in esp_tls_create (GitHub PR)

Closes IDFGH-5834

See merge request espressif/esp-idf!15125
2021-09-15 06:06:17 +00:00
Jakob Hasse
418303d38a [examples]: fixed linux host example 2021-09-15 13:52:35 +08:00
Shu Chen
6704f4c92f Merge branch 'add_openthread_srp_client_option' into 'master'
openthread : update openthread submodule

See merge request espressif/esp-idf!15161
2021-09-14 14:39:51 +00:00
morris
9e50eafcec Merge branch 'bugfix/cbor_build_sys_cleanup' into 'master'
cbor: build system cleanup

See merge request espressif/esp-idf!15190
2021-09-14 13:01:48 +00:00
Zim Kalinowski
1ab631449f Merge branch 'bugfix/fix-invalid-task-exit-critical' into 'master'
fixed invalid taskEXIT_CRITICAL

See merge request espressif/esp-idf!15191
2021-09-14 12:02:10 +00:00
Mahavir Jain
4ac198906e Merge branch 'docs/http_readme_cleanup' into 'master'
docs: Updated protocols/http* examples READMEs

Closes IDF-206

See merge request espressif/esp-idf!15120
2021-09-14 11:44:21 +00:00
xiaqilin
988ec8be56 ieee802154: add zigbee pending mode and config coordinator function 2021-09-14 19:19:30 +08:00
WangQixiang
c5a52c605f openthread: update openthread submodule
openthread: add srp client enable option for openthread component

ieee802154: set ieee802154 default PTI to 6
2021-09-14 17:13:19 +08:00
Anton Maklakov
c94b913ced Merge branch 'bugfix/esp32s3_chip_id' into 'master'
esp_hw_support: update esp32s3 chip ID to the MP version

See merge request espressif/esp-idf!15183
2021-09-14 09:09:38 +00:00
Armando (Dou Yiwen)
13b63cd9d2 Merge branch 'feature/support_adc_calibration_s3' into 'master'
adc: support adc calibration on s3

Closes IDF-1950, IDF-3730, and IDF-3036

See merge request espressif/esp-idf!15031
2021-09-14 08:51:03 +00:00
Kevin (Lao Kaiyao)
a287f34f88 Merge branch 'bugfix/i2s_apll_fixed_clock' into 'master'
i2s: fix apll bug introduced in 'refactor/i2s_driver'

Closes IDFGH-5824

See merge request espressif/esp-idf!15109
2021-09-14 08:31:12 +00:00
Ondrej Kosta
76326e8268 esp_eth: add PHY loopback control via esp_eth_ioctl
Fixed esp_eth_ioctl command's data argument non-standard handling
2021-09-14 09:13:54 +02:00
Zim Kalinowski
da65a010a3 fixed invalid taskEXIT_CRITICAL 2021-09-14 15:03:46 +08:00
morris
502e132e5d Merge branch 'feature/fast_gpio_c3' into 'master'
fast gpio support on esp32-c3

Closes IDF-3783

See merge request espressif/esp-idf!14986
2021-09-14 06:09:34 +00:00
Song Ruo Jing
10b848327b Merge branch 'feature/usb_phy' into 'master'
usb: Add usb_phy driver to support operations on USB PHY

Closes IDF-3574 and IDF-1882

See merge request espressif/esp-idf!14879
2021-09-14 06:06:06 +00:00
Mahavir Jain
8e720db65a cbor: build system cleanup
Some of the special CFLAGS required for masking warnings are no more
required with updated tinycbor release.
2021-09-14 09:45:43 +05:30
Armando
5d54a34a9b adc: add an example of using ADC Single Read driver and ADC Calibration driver 2021-09-14 11:42:50 +08:00
Armando
9aae92fd16 adc: add a ut for calibration speed 2021-09-14 11:42:50 +08:00
Armando
c45c6f52f1 adc: support adc efuse-based calibration on esp32s3 2021-09-14 11:42:50 +08:00
Sudeep Mohanty
0912df611f freertos: updated the location of FreeRTOSConfig.h
Moved FreeRTOSConfig.h from include/freertos to include/esp_additions/freertos.
Updated FreeRTOS.h file to include FreeRTOSConfig.h without the
freertos/ prefix to match with the upstream file.
Renamed architecture specific FreeRTOSConfig.h files to FreeRTOSConfig_arch.h

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-09-14 08:46:01 +05:30
Ivan Grokhotkov
e21e5aac64 esp_hw_support: update esp32s3 chip ID to the MP version
- Update 7.2.5 chip ID (4) to 7.2.8 chip ID (9).
- Remove TODO in espcoredump regarding this mismatch.
2021-09-13 15:16:45 +02:00
Ivan Grokhotkov
c54caa457e Merge branch 'feature/espcoredump_4_esp32s3' into 'master'
Add Esp32s3 support to the coredump component.

See merge request espressif/esp-idf!15097
2021-09-13 12:37:12 +00:00