zwx
7f12a645ce
fix(vfs): fix uart malloc when locates ISR context in IRAM
2023-12-07 10:43:58 +08:00
sonika.rathi
633a3b06db
fix(vfs/uart): add UART VFS select callback in IRAM
...
UART VFS select callback is placed in IRAM when CONFIG_UART_ISR_IN_IRAM is enabled
2023-11-21 14:17:08 +01:00
sonika.rathi
8a6ca94484
fix(vfs/uart): Add support for multi-task call to uart select (v5.1)
2023-10-05 09:46:30 +02:00
Sonika Rathi
199205026e
UART: UART_SELECT_WRITE_NOTIF event added in UART driver
...
Closes https://github.com/espressif/esp-idf/issues/10986
2023-09-25 10:36:44 +02:00
LiPeng
20219b8ee6
fix(vfs): Fix event_write may not exit critical section
...
This commit fixes the event_write() function where the critical section
was unbalanced.
Merges https://github.com/espressif/esp-idf/pull/12258
2023-09-19 08:52:36 +02:00
Jiang Jiang Jian
87b960121a
Merge branch 'contrib/github_pr_10987_v5.1' into 'release/v5.1'
...
Allow to config the maximum number of VFS entries. (GitHub PR) (v5.1)
See merge request espressif/esp-idf!23871
2023-07-05 19:32:32 +08:00
Jiang Jiang Jian
46396d7c16
Merge branch 'bugfix/usb_serial_jtag_select_poll_crash_v5.1' into 'release/v5.1'
...
vfs: select sanity NULL check (v5.1)
See merge request espressif/esp-idf!23946
2023-07-05 19:25:25 +08:00
morris
641a07950d
vfs_uart: fix out-of-bounds read
...
when open uart device "/2" on chips only have 2 UART peripherals
2023-06-26 07:07:52 +00:00
Adam Múdry
3da76d4bd7
vfs: select sanity NULL check
...
https://github.com/espressif/esp-idf/issues/9964
2023-05-26 13:46:11 +02:00
Ivan Grokhotkov
aea087b793
vfs: VFS_MAX_COUNT should be non-zero even without IO support
2023-05-22 12:30:24 +02:00
Oliver Schmidt
de4e003256
Allow to config the maximum number of VFS entries.
2023-05-22 12:30:24 +02:00
Song Ruo Jing
202b18b5fa
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-27 11:11:18 +00:00
C.S.M
b184b9a153
Merge branch 'bugfix/usb_serial_driver_block' into 'master'
...
usb_serial_jtag: Fix bug of blocking TX xfer when using driver
Closes IDF-5390 and IDFGH-8776
See merge request espressif/esp-idf!22412
2023-02-24 10:22:08 +08:00
Cao Sen Miao
720b8d9c1a
usb_serial_jtag: Fix bug of blocking TX xfer when using driver,
...
Merges https://github.com/espressif/esp-idf/pull/10208
2023-02-23 17:45:39 +08:00
Chip Weinberger
c39be8bc76
[USB Serial/JTAG Driver] use time-limited blocking for TX
2023-02-22 14:28:08 +08:00
Alexey Lapshin
75642ca07a
vfs: fix gcc-12 compile errors
2023-02-22 05:33:03 +00:00
Cao Sen Miao
fd3e0b0b18
esp32h2(ci): enable target test
2023-02-15 10:20:43 +08:00
morris
774a05399b
soc: fix wrong APB_CLK_FREQ value on esp32c6
2023-01-28 06:33:23 +00:00
Song Ruo Jing
e13a4ad963
ci: Disable some unit-test-apps for esp32c6 to pass ci build stage
2022-11-28 11:58:30 +08:00
Ivan Grokhotkov
11ec9d392d
Merge branch 'bugfix/storage_wformat' into 'master'
...
storage: fix and re-enable -Wformat warnings
See merge request espressif/esp-idf!20486
2022-10-18 20:21:53 +08:00
Ivan Grokhotkov
0a352a6ff2
vfs, spi_flash: re-enable unit tests for C2
2022-10-12 11:09:36 +02:00
Ivan Grokhotkov
23e1ae1bc2
storage: fix and re-enable -Wformat warnings
2022-10-06 16:16:32 +02:00
radek.tandler
723adae0ec
spiffs: convert host tests from Make to CMake
2022-09-12 14:14:09 +00:00
Mahavir Jain
8b8d525a6c
vfs: use recommended esp_cpu_dbgr_is_attached
API
...
This fixes deprecation warning with earlier API
`cpu_hal_is_debugger_attached`.
2022-08-29 22:15:11 +05:30
Martin Vychodil
38acc3f7bf
Merge branch 'feature/vfs_driver_interface' into 'master'
...
esp/vfs: VFS semihosting interface support
Closes OCD-98
See merge request espressif/esp-idf!16932
2022-08-29 20:52:17 +08:00
Ivan Grokhotkov
401c10ecfb
build system: re-add -Wno-format as private flag for some components
2022-08-03 16:42:47 +04:00
Ivan Grokhotkov
0d4a533b74
Merge branch 'bugfix/usb_console_reset' into 'master'
...
esp_system: usb_console: fix restart when Wi-Fi is working
Closes IDFGH-5683
See merge request espressif/esp-idf!19289
2022-08-01 13:36:44 +08:00
Ivan Grokhotkov
bf10146a15
esp_system, vfs: fix incomplete blocking reads in vfs_cdcacm
...
Blocking read from cdcacm VFS could return less bytes than requested.
This didn’t match the behaviour of other VFS drivers, and higher level
code could misbehave.
2022-07-28 17:28:08 +02:00
Darian Leung
05ff1039dc
esp_hw_support: Fix misuse of spinlocks as critical sections
...
Spinlocks themselves do not constitute critical sections as after a spinlock is acquired, interrupts
can remain enabled. However, there are some places where spinlocks are used direclty instead of using
the portMUX_TYPE and portENTER_CRITICAL_...() APIs. This commit fixes those calls.
2022-07-28 17:25:00 +08:00
Martin Vychodil
a16431c7a9
Merge branch 'feature/vfs_serial_fcntl_get_rd_wr_state' into 'master'
...
vfs: uart/cdcacm/usb_serial_jtag fcntl return read/write state
See merge request espressif/esp-idf!19168
2022-07-24 16:15:28 +08:00
Guillaume Souchere
6005cc9163
hal: Deprecate interrupt_controller_hal.h, cpu_hal.h and cpu_ll.h interfaces
...
This commit marks all functions in interrupt_controller_hal.h, cpu_ll.h and cpu_hal.h as deprecated.
Users should use functions from esp_cpu.h instead.
2022-07-22 00:06:06 +08:00
Dong Heng
37c18d9ee4
vfs: uart/cdcacm/usb_serial_jtag fcntl return read/write state
2022-07-21 16:16:44 +08:00
Eren Terzioglu
f6248ebf0d
esp/vfs: VFS semihosting interface support
2022-06-28 17:04:15 +03:00
Michael (XIAO Xufeng)
6a8aed12ee
ci: partially enable ut tests for esp32c2
...
Disabled test cases are tracked in:
IDF-4465, IDF-5045, IDF-5057, IDF-5058, IDF-5059, IDF-5060, IDF-5061, IDF-5131
- test_fatfs: IDF-5136
- test_pm: IDF-5053
- test_cache_mmu: IDF-5138
- test_partitions: IDF-5137
- test_vfs: IDF-5139
- test_freertos: IDF-5140
- test_wpa_supplicant: IDF-5046
- test_mbedtls: IDF-5141
- test_pthread: IDF-5142
- test_protocomm: IDF-5143
- test_lightsleep: IDF-5053
- test_taskwdt: IDF-5055
- test_tcp_transport: IDF-5144
- test_app_update: IDF-5145
- test_timer: IDF-5052
- test_spi: IDF-5146
- test_rtc_clk: IDF-5060
- test_heap: IDF-5167
ci: fixed issues for tests of libgcc, ets_timer, newlib
test_pm: support on C2
2022-06-02 14:23:35 +08:00
David Čermák
285c6fc906
Merge branch 'bugfix/vfs_sock_select_race' into 'master'
...
vfs: Fix potential select() race if both sock and other-fd trigger
Closes IDFGH-7308
See merge request espressif/esp-idf!18023
2022-05-17 15:28:48 +08:00
David Cermak
bf8ceae780
vfs: Fix potential select() race if both sock and other-fd trigger
...
This fixes a potential race condition in select() if both a socket-fd
and non-socket fd trigger simultaneously to unblock this select.
In case of both fds, we use lwip's local thread semaphore, so we only
have to try return it (if it was taken/triggered more than once) when
we exit select().
Closes https://github.com/espressif/esp-idf/issues/8896
2022-05-16 20:26:44 +02:00
morris
722fde218d
uart: add default source clock for all targets
2022-05-09 11:26:30 +08:00
Roland Dobai
efc3357f1a
Merge branch 'feature/semihosting_call_number_change' into 'master'
...
Semihosting V2
Closes IDF-4893
See merge request espressif/esp-idf!17412
2022-05-07 00:28:48 +08:00
morris
e7295c3577
gptimer: added enable/disable functions
2022-05-06 18:18:39 +08:00
Erhan Kurubas
ad078c5153
semihosting: drop absolute path support
2022-05-05 09:12:42 +00:00
Erhan Kurubas
0fc0254734
semihosting: version 2
2022-05-05 09:12:42 +00:00
Ivan Grokhotkov
1b90711545
vfs: usb_serial_jtag: consider O_NONBLOCK flag when reading via driver
...
Closes https://github.com/espressif/esp-idf/issues/8839
2022-05-04 11:37:52 +02:00
Ivan Grokhotkov
708e99497b
global: add dependency on esp_timer component and include esp_timer.h
...
Some components were including esp_timer.h without declaring a
dependency on esp_timer component. This used to work due to a
transitive public dependency on esp_timer from freertos component.
Add explicit dependencies where needed.
Also some source files were using esp_timer functions without
including the header file. This used to work because esp_timer.h was
included from freertos port header file. This commit adds esp_timer.h
includes where needed.
2022-04-25 18:39:23 +02:00
morris
f32a89826c
clk_tree: added default clock source for peripheral
2022-04-14 15:44:56 +08:00
Martin Vychodil
3b3bfc1971
Merge branch 'vfs_fat/improve_mount_function_names' into 'master'
...
vfs: renamed FATFS convenience mounting functions
Closes IDF-4370
See merge request espressif/esp-idf!17369
2022-04-13 17:52:10 +08:00
Matus Fabo
24268d47a2
change: renamed FATFS convenience mounting functions
...
change: renamed every instance of these functions
add: deprecation notice with old functions
change: CC0 licence to CC0-1.0 in fatfsgen_example_main.c
2022-04-11 08:44:40 +00:00
morris
483149e41b
global: fix some potential out-of-bounds issue
...
...that found by Coverity Scan
2022-04-08 11:05:43 +08:00
Marius Vikhammer
a6543f0d21
docs: fix broken references to misc API functions and types.
2022-03-27 16:46:57 +08:00
Vamshi Gajjela
ea9f7cc370
fatfs: Add ftruncate api support for VFS and FAT-VFS
...
Unit test cases added to verify ftruncate within fatfs tests.
Closes https://github.com/espressif/esp-idf/issues/8279
2022-03-08 16:58:25 +05:30
Sudeep Mohanty
a9fda54d39
esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
...
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30