Angus Gratton
a231ba22f3
cxx: Add a sanity check for C++ exception support
2017-10-17 14:46:08 +08:00
Angus Gratton
86c89ff169
pthread: Add support for pthread thread local storage
...
Refactors LWIP to use this for the LWIP thread local semaphore
2017-10-17 14:46:08 +08:00
Angus Gratton
3234064b6a
freertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors
...
If the callbacks use any blocking call (ie printf), this can otherwise trigger a deadlock.
2017-10-17 14:31:58 +08:00
Angus Gratton
2ccc2ec5ee
cxx tests: Fix race condition w/ leak checker when tearing down test tasks
2017-10-17 14:31:58 +08:00
Angus Gratton
90bf40587e
Merge branch 'feature/sockets_files_shared_fd_space' into 'master'
...
lwip & vfs: POSIX I/O functions operate on sockets and files (first stage, no select() yet)
See merge request !1352
2017-10-17 14:17:09 +08:00
Ivan Grokhotkov
6e7dd5962b
Merge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'
...
freertos/Add mutex for dual core hooks
See merge request !1406
2017-10-17 14:15:09 +08:00
Ivan Grokhotkov
08d6ca4f70
Merge branch 'bugfix/ets_timer_iram' into 'master'
...
wifi/bt coexistence: Fix disabled cache access race when writing to flash
See merge request !1409
2017-10-17 14:12:43 +08:00
Gabriel Carstoiu
8128bb95ef
fix(spi_slave): enable DMA clock when initialization.
...
merging in the code updates to the SPI master code done in commit b834fcf78a
.
TW#15670, Closes #1027
2017-10-17 12:20:40 +08:00
michael
88f602a0e0
fix(periph_ctrl): fix reset function in periph_ctrl.c
2017-10-17 12:20:40 +08:00
michael
8e31a36562
feat(spi_slave): append trans_len field in trans_desc to show length actually transferred.
2017-10-17 12:01:12 +08:00
Ivan Grokhotkov
d3bb9de36a
Merge branch 'feature/spiram_init_in_app' into 'master'
...
spiram: expose function to initialize SPI RAM cache
See merge request !1281
2017-10-17 04:56:35 +08:00
Ivan Grokhotkov
b58e19f8a2
Merge branch 'bugfix/soc_component_rodata' into 'master'
...
soc: place constant data from rtc_clk.c into DRAM
See merge request !1321
2017-10-17 04:54:43 +08:00
Ivan Grokhotkov
edb212986f
Merge branch 'bugfix/sd_card_fixes' into 'master'
...
SD card fixes
See merge request !1393
2017-10-17 04:45:24 +08:00
Ivan Grokhotkov
2bba4a77c4
Merge branch 'bugfix/console_empty_command' into 'master'
...
console: handle empty input to esp_console_run correctly
See merge request !1390
2017-10-17 04:44:19 +08:00
Ivan Grokhotkov
468d90762a
Merge branch 'bugfix/freertos_portmux_debug' into 'master'
...
freertos: fix compilation errors with portMUX debugging enabled
See merge request !1392
2017-10-17 04:44:04 +08:00
Ivan Grokhotkov
a638871aa5
Merge branch 'bugfix/nvs_init_partition' into 'master'
...
nvs: fix nvs_flash_init_partition initializing default partition
See merge request !1391
2017-10-17 04:43:54 +08:00
Angus Gratton
094cf4d79d
wifi/bt coexistence: Fix disabled cache access race when writing to flash
...
Moves the ets_timer_arm() / ets_timer_disarm() code paths to RAM
Overhead is 740 bytes of IRAM, 0 bytes DRAM
(For comparison: If all of esp_timer.c is moved to RAM, overhead is 1068 bytes IRAM and 480 bytes DRAM.)
2017-10-16 19:47:33 +08:00
Jiang Jiang Jian
99f2996779
Merge branch 'bugfix/tw15595_eth_got_ip_log_error' into 'master'
...
esp32/tcpipadapter: correct eth ip got event info
See merge request !1388
2017-10-16 17:30:14 +08:00
Jiang Jiang Jian
50c993a1b2
Merge branch 'feature/some_refactor_for_esp_ping' into 'master'
...
lwip: refactor to socket ping
See merge request !875
2017-10-16 17:30:00 +08:00
Yulong
4b1968f315
component/bt: Change the queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len code to the if case.
2017-10-16 03:42:49 -04:00
Darian Leung
7584f89278
esp32/Add mutex for dual core hooks
...
This commit adds critical sections for the dual core hooks
2017-10-16 11:47:38 +08:00
Angus Gratton
539262b5c2
vfs: Remove fd_offset member
...
This was intended for integrating LWIP, but a different approach was used.
2017-10-16 09:45:50 +08:00
Angus Gratton
4a9d4587b7
vfs: Add C++ guards to esp_vfs_dev.h
...
Closes https://github.com/espressif/esp-idf/issues/1069
2017-10-16 09:45:50 +08:00
Angus Gratton
541493d877
lwip: Check for underflow in FD_SET()/FD_GET()
...
select() only works with LWIP sockets which have a high LWIP_SOCKET_OFFSET,
so chance of accidental underflow is high.
2017-10-16 09:45:50 +08:00
Angus Gratton
3f83914f7a
lwip: Fix bug with LWIP_SOCKET_OFFSET & IGMP group support
2017-10-16 09:45:50 +08:00
Angus Gratton
48d9d507aa
newlib: Remove fcntl() implementation from libc
...
Allows fcntl() implementation in vfs to be used.
Closes https://github.com/espressif/esp-idf/issues/1070
Note this is different to the other libc file-related syscalls, as there is no
reent structure involved.
2017-10-16 09:45:50 +08:00
Angus Gratton
3ebf7923d3
lwip: Route LWIP socket POSIX I/O functions via IDF VFS layer
...
No more conflicts between LWIP & newlib read(), write(), fcntl(), etc.
select() still only works if all of the fds are sockets.
Closes https://github.com/espressif/esp-idf/issues/273
2017-10-16 09:45:49 +08:00
Angus Gratton
a320fed3b5
vfs: Add ioctl() to filesystem set
2017-10-16 09:45:49 +08:00
Angus Gratton
0c50b65a34
lwip: Increase minimum TCP/IP task stack size if log level is Debug or Verbose
...
... unless nano formatting is enabled.
Fixes stack overflow in tcpip_adapter at the default level, as reported on forum:
https://esp32.com/viewtopic.php?f=2&t=3250&p=15538#p15447
2017-10-16 09:43:23 +08:00
Angus Gratton
b013f5d490
Merge branch 'bugfix/freertos_resume_scheduler_pending_tasks' into 'master'
...
freertos: Fix bug with xTaskResumeAll() not resuming all tasks
See merge request !1330
2017-10-16 09:43:04 +08:00
Ivan Grokhotkov
1da3204a7c
spiram: expose function to initialize SPI RAM cache
...
Some frameworks based on ESP-IDF need to be able to decide whether to
initialize SPI RAM after the application has started. This change splits
out part of esp_spiram_init which manipulate cache MMU into a separate
function. Applications can disable cache, call esp_spiram_init_cache,
re-enable cache, and then call esp_spiram_init.
Disabling and re-enabling the cache can be achieved using functions
provided in esp_spi_flash.h.
2017-10-16 09:15:11 +08:00
He Yin Ling
3a271a4ae7
Merge branch 'bugfix/freertos_dual_core_hooks' into 'master'
...
bugfix/freertos_dual_core_hooks
See merge request !1399
2017-10-14 09:41:03 +08:00
Jiang Jiang Jian
a1d23051b4
Merge branch 'bugfix/tw15538_ipv6_socket_close_error' into 'master'
...
lwip: init lwip error code
See merge request !1379
2017-10-13 19:15:44 +08:00
Darian Leung
95d63137d1
bugfix/freertos_dual_core_hooks
...
This commit fixes bugs with the dual core changes to freeRTOS tick and idle hooks.
Interrupt watchdog now registers tick hooks to both cores.
API for cross core tick and idle hook registration were also added
2017-10-13 18:27:53 +08:00
XiaXiaotian
c730f676c3
Reduce minimum number of WiFi static tx buffer
...
Calibrate tx power after sending five packets
2017-10-13 17:11:31 +08:00
Jiang Jiang Jian
713dee57f0
Merge branch 'feature/add_const_for_wifi_api' into 'master'
...
esp32: add const for some WiFi api
See merge request !1394
2017-10-13 17:08:29 +08:00
Liu Zhi Fu
3bcaa592ee
lwip: refactor to socket ping
...
Do some refactor to socket ping:
1. Add ping_deinit to kill ping thread
2. Apply configuration set by esp_ping_set_target to socket ping
3. Limit only one ping thread
2017-10-13 16:37:09 +08:00
Jiang Jiang Jian
a0ad3ff008
Merge branch 'bugfix/btdm_fix_set_attr_value_crash_when_length_is_0' into 'master'
...
component/bt: fix crash when the length of attr value set zero
See merge request !1397
2017-10-13 16:00:15 +08:00
Liu Zhi Fu
e2d077cea1
lwip: init lwip error code
...
Init the error code to ERR_OK when call tcpip_apimsg
2017-10-13 15:59:04 +08:00
Jiang Jiang Jian
90be957af1
Merge branch 'bugfix/btdm_fix_register_app_id_failed_when_more_than_3' into 'master'
...
component/bt: fix register more than three app_ids failed
See merge request !1389
2017-10-13 15:57:00 +08:00
Liu Zhi Fu
e04a0d66b8
esp32/tcpipadapter: correct eth ip got event info
...
1. Raise SYSTEM_EVENT_ETH_GOT_IP when eth got ip
2. Add default handler for SYSTEM_EVENT_ETH_GOT_IP
3. Minor change about ethernet kconfig
2017-10-13 15:56:51 +08:00
Jiang Jiang Jian
6ff5c32ae5
Merge branch 'feature/alloc_memories_of_wifi_and_lwip_in_spiram_first' into 'master'
...
Allocate some memories in SPIRAM first.
See merge request !1367
2017-10-13 15:47:27 +08:00
Jiang Jiang Jian
aa7a1e5e2d
Merge branch 'bugfix/btdm_controller_deinit' into 'master'
...
component/bt : allow init after de-init
See merge request !1371
2017-10-13 15:44:58 +08:00
Liu Zhi Fu
0e586a4cdf
esp32: add const for some WiFi api
...
Add const if the pointer parameter is const
2017-10-13 15:10:34 +08:00
zhiweijian
520b3340f6
Component/bt: fix crash when set attr value 0
2017-10-13 15:06:08 +08:00
XiaXiaotian
5df39cd4b6
Allocate some memories in SPIRAM first.
...
Try to allocate some WiFi and LWIP memories in SPIRAM first. If
failed, try to allocate in internal RAM then.
2017-10-13 10:11:24 +08:00
Angus Gratton
0a52dbccca
Merge branch 'bugfix/spi_reset_race' into 'master'
...
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
See merge request !1349
2017-10-13 08:51:36 +08:00
Angus Gratton
5d8bd1aa9e
Merge branch 'bugfix/libsodium_mbedtls_sha' into 'master'
...
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
See merge request !1329
2017-10-13 08:50:24 +08:00
Angus Gratton
63fdf998b8
Merge branch 'feature/windows_build_check_msys2' into 'master'
...
build system: Detect wrong Windows MSYSTEM version and warn
See merge request !1356
2017-10-13 08:50:09 +08:00
Angus Gratton
bad585b6b3
Merge branch 'bugfix/freertos_halt_on_startup' into 'master'
...
freertos: Remove "stop program on scheduler start when JTAG/OCD is detected" option
See merge request !1354
2017-10-13 08:40:39 +08:00