Michael (XIAO Xufeng)
3387d751d9
spi: fix the crash when callbacks are not in the IRAM
...
Introduced in 9c23b8e5
and 4f87a62f
. To get higher speed, menuconfig
options are added to put ISR and other functions into the IRAM. The
interrupt flag ESP_INTR_FLAG_IRAM is also mistakenly set when the ISR is
put into the IRAM. However callbacks, which are wrote by the user, are
called in the master and slave ISR. The user may not be aware of that
these callbacks are not disabled during flash operations. Any cache miss
during flash operation will cause panic.
Essentially IRAM functions and intrrupt flag ESP_INTR_FLAG_IRAM are
different, the latter means not disabling the ISR during flash
operations. New bus_config flag intr_flags is offered to help set the
interrupt attribute, including priority level, SHARED, IRAM (not
disabled during flash operations). It introduced a small BREAK to
IDFv3.1 (but the same as IDFv3.0) that the user has to manually set IRAM
flag now (therefore he's aware of the IRAM thing) to void the ISR being
disabled during flash operations.
2018-12-05 10:25:57 +08:00
kooho
2aea6e5e9c
driver(i2c): enable I2C master hardware filter by default for release/v3.1
2018-11-28 17:38:50 +08:00
Jiang Jiang Jian
7f4b77ca5b
Merge branch 'bugfix/add_mutex_for_some_touchpad_apis_v3.1' into 'release/v3.1'
...
fix(touch): add_mutex_for_some_touchpad_apis (backport v3.1)
See merge request idf/esp-idf!2963
2018-08-10 12:18:33 +08:00
fuzhibo
6ee884c861
fix(touch): add_mutex_for_some_touchpad_apis
2018-08-08 20:06:54 +08:00
michael
7995ba6433
fix(sdio_slave): improve sdio slave for high speed and 4 bit mode
2018-08-01 15:23:24 +08:00
michael
5019ff3345
fix(sdio_slave): fix minor issues like return value of send function, output arg, etc.
2018-08-01 15:23:23 +08:00
Angus Gratton
34a4a96ded
Merge branch 'bugfix/sdmmc_auto_stop_cmd_v3.1' into 'release/v3.1'
...
sdmmc: enable host auto_stop only for certain commands (backport for v3.1)
See merge request idf/esp-idf!2817
2018-08-01 14:29:03 +08:00
Angus Gratton
3e2d5f6292
Merge branch 'bugfix/fix_pcnt_isr_service_register_bug_for_v3.1' into 'release/v3.1'
...
driver(pcnt): Add some comments in pcnt.h for v3.1
See merge request idf/esp-idf!2845
2018-07-26 08:35:18 +08:00
Angus Gratton
e9112a9489
Merge branch 'bugfix/fix_touchpad_wakeup_status_v3.1' into 'release/v3.1'
...
fix(sleep): swap touchpad num in wakeup status v3.1
See merge request idf/esp-idf!2848
2018-07-26 08:34:55 +08:00
fuzhibo
c6be772242
fix(sleep): swap touchpad num in wakeup status
2018-07-24 18:08:29 +08:00
Wangjialin
b2f1dd6a16
bugfix(ledc): fix bugs reported from unit-test and github.
...
1. In ledc_set_duty_and_update, return if duty updated. Close https://github.com/espressif/esp-idf/issues/2082
2. fix ledc_set_freq function for low speed mode.
2018-07-24 13:22:50 +08:00
kooho
989396ef27
Add some comments in pcnt.h.
2018-07-24 10:46:50 +08:00
Ivan Grokhotkov
447890247a
sdmmc: enable host auto_stop only for certain commands
...
Perviously host send_auto_stop flag would be set for every data
transfer over 1 block long. This caused stop commands to be sent
after CMD53, which shouldn't be done. Fix by adding an explicit list
of commands for which send_auto_stop should be set.
2018-07-19 10:23:58 +03:00
hou wen xiang
071f7cdb49
driver(gpio) : Fixed the gpio related bug for release v3.1.
2018-07-18 15:36:57 +08:00
Konstantin Kondrashov
baa6c19700
soc: Fix check_long_hold_gpio and move def to soc
...
Fix factory_reset_pin init as input
Move definition a structure rtc_gpio_desc to soc
Closes https://github.com/espressif/esp-idf/issues/2030
2018-06-26 12:47:55 +05:00
Angus Gratton
c1fdd45001
Merge branch 'bugfix/fix_touch_pad_can_not_wake_up' into 'master'
...
bugfix(touch pad): modify deep-sleep example and add note for sleep api
See merge request idf/esp-idf!2553
2018-06-20 11:51:46 +08:00
fuzhibo
9a0d57b90b
bugfix(touch pad): modify deep-sleep example and add note for sleep api.
...
Closes https://github.com/espressif/esp-idf/issues/2052
2018-06-20 10:57:26 +08:00
Michael (XIAO Xufeng)
77077196fd
fix(spi): reset gpios that used by spi when deinited
2018-06-14 11:29:15 +08:00
Michael (XIAO Xufeng)
ebfda40b7c
refactor(spi): move pin information into soc folder
2018-06-14 11:29:15 +08:00
Michael (XIAO Xufeng)
939e5693a5
chore(spi): fix the terms of native to iomux
2018-06-06 06:08:39 +00:00
michael
5cf7d3768d
feat(spi_master): fine tune the timing of SPI
2018-06-06 06:08:39 +00:00
Angus Gratton
c9f8470fdf
Merge branch 'feature/rmt_translator' into 'master'
...
driver(rmt): Add API supports sending uint8_t type data
See merge request idf/esp-idf!1975
2018-05-23 07:27:14 +08:00
Angus Gratton
75c27202f7
Merge branch 'feature/update_touchpad_filter_process' into 'master'
...
driver(touchpad): Change the measuring mode, improve the software filter.
See merge request idf/esp-idf!2358
2018-05-22 09:56:55 +08:00
kooho
5bc8ae3b3a
driver(rmt):Add API supports sending uint8_t type data.
2018-05-22 01:55:44 +00:00
michael
f613859e29
feat(sdio_slave): add new driver for sdio_slave
2018-05-21 23:48:47 +08:00
Wangjialin
09181b7d94
driver(touchpad): improve touchpad filter mode and update examples.
2018-05-21 14:45:31 +08:00
kooho
f6f9f93a9d
driver(i2c, rmt):Add intr_flag setting to ESP_INTR_FLAG_IRAM support when enable psram.
2018-05-21 09:37:56 +08:00
wangmengyang
22e21b38f7
component/bt: implement bluetooth modem sleep mode, one mode for BLE only and another for dual mode bluetooth
...
1. provide options for bluetooth low power mode
2. provide two options for bluetooth low power clock: main XTAL and external 32kHz XTAL
3. provide function and callbacks to control bluetooth low power mode, including enable/disable sleep, software wakeup request, low power clock settings, check power state, etc
4. modify vhci API vhci_host_send_packet to use blocking mode
5. note that DFS and bluetooth modem sleep can not be used together currently.
2018-05-19 15:37:26 +08:00
Roland Dobai
18e83bcd53
Allow VFS file descriptors in select()
2018-05-18 08:06:33 +02:00
Jiang Jiang Jian
cf9499479c
Merge branch 'bugfix/i2s_mix_result_with_error_code_master' into 'master'
...
fix i2s mix result and error code
See merge request idf/esp-idf!2227
2018-05-17 21:53:06 +08:00
Jiang Jiang Jian
8c657dfee4
Merge branch 'bugfix/fix_an_error_in_comment_of_uart_driver' into 'master'
...
deiver(uart):revise the explanation of uart break length
See merge request idf/esp-idf!2398
2018-05-17 17:17:14 +08:00
Zhang Zhao Xiang
9deb58859c
fix i2s mix result and error code
2018-05-17 10:59:04 +08:00
Angus Gratton
b2e264ef52
Merge branch 'feature/ledc_add_api_set_hpoint_val' into 'master'
...
driver(ledc): fix duty and fade issues and add thread-safe version APIs.
See merge request idf/esp-idf!2233
2018-05-16 19:52:26 +08:00
Angus Gratton
fcd5d0869d
Merge branch 'bugfix/spi_native_pins' into 'master'
...
fix several spi issues about pin configurations
See merge request idf/esp-idf!2309
2018-05-15 14:19:20 +08:00
chenjianqiang
b5de860bcb
revise the explain of a parameter(brk_len) in uart driver file
2018-05-14 19:47:16 +08:00
kooho
1bebec05c6
driver(ledc): fix duty and fade issues and add thread-safe version APIs.
...
1. Fix the duty fade check issue reported from https://github.com/espressif/esp-idf/issues/1914
2. Fix the duty overflow issue when duty_scale is set to 1.
3. Fix the duty fade error when a fade operation is under way. We must configure a new duty setting after the previous fade operation has finished due to hardware limit.
4. Add thread-safe version APIs to set duty and fade.
5. Correct the duty range in driver.
2018-05-14 12:27:21 +08:00
Angus Gratton
64c52022b9
Merge branch 'bugfix/add_comments_for_adc' into 'master'
...
driver(adc): Add descriptions that starting ADC can trigger interrupt of GPIO36…
See merge request idf/esp-idf!1910
2018-05-11 18:54:40 +08:00
kooho
d53661a663
driver(adc): add descriptions for the issue that starting ADC can trigger interrupt of GPIO36 and GPIO39.
2018-05-11 17:08:58 +08:00
Michael (XIAO Xufeng)
1f085b1a3b
feat(gpio): add function allowing switching input source from GPIO back to IOMUX
2018-05-08 15:47:25 +08:00
Angus Gratton
b90ad81f22
driver: Add notes to SPI driver docs about thread safety
2018-05-07 09:03:48 +08:00
Ivan Grokhotkov
52f9a5ca16
Merge branch 'bugfix/sdspi_wp_cd_pins' into 'master'
...
sdmmc, sdspi: fix handling of CD and WP
See merge request idf/esp-idf!2285
2018-04-24 20:53:47 +08:00
Ivan Grokhotkov
2a7d85cfa4
sdmmc, sdspi: fix initializers to be C++-compatible, add test
...
Closes https://github.com/espressif/esp-idf/issues/1861
Closes https://github.com/espressif/arduino-esp32/issues/1312
2018-04-23 14:35:13 +08:00
Ivan Grokhotkov
6185e722c3
Revert "Merge branch 'feature/vfs_select' into 'master'"
...
This reverts merge request !2074
2018-04-20 11:51:41 +08:00
Ivan Grokhotkov
88d0d6ffb0
Merge branch 'feature/vfs_select' into 'master'
...
Allow VFS file descriptors in select()
See merge request idf/esp-idf!2074
2018-04-19 15:06:02 +08:00
Ivan Grokhotkov
b297b72abb
Merge branch 'bugfix/fix_gpio_install_isr_service_check_value' into 'master'
...
driver(gpio): modify return value when gpio ISR service already exists.
See merge request idf/esp-idf!2125
2018-04-19 15:01:50 +08:00
Roland Dobai
6852d653bd
Allow VFS file descriptors in select()
2018-04-17 11:25:30 +02:00
Ivan Grokhotkov
d3fd00c049
Merge branch 'bugfix/spi_miso_on_input_only_pins' into 'master'
...
fix(spi): allow to use MISO on GPIO34-39.
See merge request idf/esp-idf!2136
2018-04-16 14:39:02 +08:00
Angus Gratton
8b3fda99f5
Merge branch 'feature/uart_add_api_get_cmd_position' into 'master'
...
driver(uart): Add API to get the position of cmd_char
See merge request idf/esp-idf!2177
2018-04-16 08:03:25 +08:00
Wang Jia Lin
6c44fc70bc
Merge branch 'feature/gpio_add_hold_support' into 'master'
...
driver(gpio): Add api support digital pad hold function
See merge request idf/esp-idf!2186
2018-04-13 12:18:44 +08:00
Michael (Xiao Xufeng)
45f8bcf3f8
fix(spi): allow using MISO on GPIO34-39
...
Breaking Changes: arguments of ``spicommon_bus_initialize_io`` are changed.
Closes https://github.com/espressif/esp-idf/issues/1736 .
2018-04-12 17:01:38 +08:00