Michael (XIAO Xufeng)
8cddfa35b8
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-11-20 13:07:13 +08:00
Ivan Grokhotkov
a46b884a14
Merge branch 'feature/unit_test_example' into 'master'
...
Move Unity into components, add unit test example
See merge request idf/esp-idf!3562
2018-11-19 18:35:54 +08:00
Ivan Grokhotkov
6091021e83
unity: separate common and IDF specific functionality
...
New unity component can be used for testing other applications.
Upstream version of Unity is included as a submodule.
Utilities specific to ESP-IDF unit tests (partitions, leak checking
setup/teardown functions, etc) are kept only in unit-test-app.
Kconfig options are added to allow disabling certain Unity features.
2018-11-19 12:36:31 +08:00
michael
26626dfbf2
spi: add documents explicitly showing the executing core of the ISR
...
It is an ESP specific FreeRTOS feature that the ISR is always executed
on the core which calls the interrupt register function. In the SPI
driver, the function is always called in the bus initialization
function.
Hence, the ISR will be executed on the core which initialize the driver.
If the core is starved due to higher priority ISRs, or the interrupt is
disabled on the core (spinlock called, etc.), the ISR will not get
executed and SPI transactions will not be handled.
(MINOR CHANGE)
Resolves https://github.com/espressif/esp-idf/issues/2432 .
2018-11-13 11:49:31 +08:00
michael
a52ab8ca87
spi_master: modify the error msg a little when over freq limit
...
The MISO signal will be delayed if the GPIO matrix is enabled.
However, delay also comes from the slave.
Previous code only considers the former case, and assume the frequency
limitations is only violated when GPIO matrix is used.
Now we are able to calculate the freq limit when extenal MISO delay is
given (feature introduced in 9c6c6ec34ab0641ace89aeb9b1a133eb6fae1a18).
The frequency limit is lower when the external MISO delay is large, and
the limit is likely to be violated even with IOMUX.
Resolves https://github.com/espressif/esp-idf/issues/2690 .
2018-11-13 11:49:31 +08:00
Ivan Grokhotkov
621e316725
Merge branch 'feat/psram_support_hspi' into 'master'
...
esp32: support to use hspi to output clock for 4M psram
See merge request idf/esp-idf!3377
2018-11-06 20:34:41 +08:00
kooho
ea963c480c
driver(uart):update the comment of uart_set_wakeup_threshold
...
closes https://github.com/espressif/esp-idf/issues/2627
2018-11-05 13:09:12 +08:00
Konstantin Kondrashov
8bba348528
aes/sha/mpi: Bugfix a use of shared registers.
...
This commit resolves a blocking in esp_aes_block function.
Introduce:
The problem was in the fact that AES is switched off at the moment when he should give out the processed data. But because of the disabled, the operation can not be completed successfully, there is an infinite hang. The reason for this behavior is that the registers for controlling the inclusion of AES, SHA, MPI have shared registers and they were not protected from sharing.
Fix some related issue with shared using of AES SHA RSA accelerators.
Closes: https://github.com/espressif/esp-idf/issues/2295#issuecomment-432898137
2018-11-05 04:22:47 +00:00
Michael (XIAO Xufeng)
9b5d0f3322
spi: shown owner of spi host explicitly
2018-10-29 20:22:44 +08:00
Michael (XIAO Xufeng)
90d229eb6d
spi_master: speed up polling performance by putting into IRAM
2018-10-25 12:31:45 +08:00
Michael (XIAO Xufeng)
d0361a32d7
test: fix the IRAM type conflict issue using heap_caps_malloc
2018-10-25 12:31:44 +08:00
Angus Gratton
38bd836d05
Merge branch 'feature/cmake-unit-test' into 'master'
...
cmake: add unit tests build support
See merge request idf/esp-idf!3003
2018-10-22 16:29:15 +08:00
Anton Maklakov
e3fce506b8
test_spi_slave: fix warnings about unused identifiers
2018-10-21 15:11:45 +08:00
Renz Bagaporo
cc774111bf
cmake: Add support for test build
2018-10-20 12:07:24 +08:00
Ivan Grokhotkov
0663ab7609
Merge branch 'feature/uart_rs485_test' into 'master'
...
driver: rs485 test support
See merge request idf/esp-idf!2701
2018-10-19 13:05:55 +08:00
Angus Gratton
159ff6e08e
unit tests: Only initialise tcpip_adapter() when needed by the test
...
Prevents unexpected memory allocations when running tests which
don't require tcpip_adapter.
2018-10-17 22:53:46 +00:00
Alex Lisitsyn
5b7b64b946
driver: rs485 test support (remove timeout tag)
...
Adds test functionality with TEST_CASE_MULTIPLE_DEVICES() macro for RS485 test support.
2018-10-17 12:47:12 +02:00
Alex Lisitsyn
61bc733791
driver: rs485 test support
...
Adds test functionality with TEST_CASE_MULTIPLE_DEVICES() macro for RS485 test support.
2018-10-17 12:45:56 +02:00
Krzysztof Budzynski
cd5f8bcf74
MCPWM API doc update
2018-10-10 08:15:23 +08:00
Angus Gratton
05c510b44e
Merge branch 'test/spi_slave_psram_disable' into 'master'
...
test: disable the spi slave startup test when psram is enabled
See merge request idf/esp-idf!3373
2018-10-08 16:28:41 +08:00
michael
6b180f70ac
test: modify the command/address test a bit to test the LSBFIRST feature
2018-10-04 15:03:26 +08:00
michael
e5ed450d95
spi: move gpio direction config to common func for coinsistence
...
(MINOR CHANGE)
2018-10-04 14:57:31 +08:00
Michael (XIAO Xufeng)
2600f43822
spi_master: fix the command and address field when LSB_FIRST enabled
...
Resolves https://github.com/espressif/esp-idf/issues/2444 .
2018-10-04 14:57:30 +08:00
michael
f4d4183000
test: disable the spi slave startup test when psram is enabled
2018-09-26 17:55:37 +08:00
michael
d4071a7c19
sdio_slave: fix the ret_queue crash issue when being reset by the master
2018-09-25 20:30:25 +08:00
Michael (Xiao Xufeng)
4af51833f3
spi_master: add new polling mode to decrease time cost each transaction
2018-09-20 19:46:46 +08:00
Mahavir Jain
152043d469
esp_ringbuf: move ringbuf to seperate component
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-17 17:04:57 +05:30
Angus Gratton
62c3218981
Merge branch 'fix/spi_slave_free_cs' into 'master'
...
spi_slave: fix the issue rx dma get broken by master unexpected transaction
See merge request idf/esp-idf!3207
2018-09-13 13:50:56 +08:00
Angus Gratton
500ee99219
Merge branch 'bugfix/fix_mcpwm_api_mismatch_bug' into 'master'
...
driver(mcpwm): Fix some mcpwm related bug
See merge request idf/esp-idf!2510
2018-09-12 14:59:02 +08:00
Renz Christian Bagaporo
d9939cedd9
cmake: make main a component again
2018-09-11 09:44:12 +08:00
michael
8f88a81f30
sdio_slave: fix the recv crash when trans finish and load at the same time
2018-09-10 13:06:54 +08:00
He Yin Ling
6f5820814f
Merge branch 'test/driver_case_review' into 'master'
...
Test/driver case review
See merge request idf/esp-idf!3206
2018-09-07 16:48:59 +08:00
Angus Gratton
4eeed31a04
Merge branch 'feature/cmake' into 'master'
...
Merge experimental CMake support to master
See merge request idf/esp-idf!3024
2018-09-07 13:44:17 +08:00
michael
2d748b5d38
spi_slave: fix the issue rx dma get broken by master unexpected transaction
2018-09-07 12:04:55 +08:00
houchenyao
0cfed0b79b
rmt test: add the case for bug in github[ #1815 ]
2018-09-06 19:43:30 +08:00
houchenyao
47fcdeaa0b
rmt test: add case test test the bug of re-install problem
...
add pending bug case:rmt_tx_stop function cause the re-install fail when rmt_config_t.tx_config.loop_en==true
2018-09-06 19:43:30 +08:00
houchenyao
09dd1034de
rmt test: add case to check memory block.
...
add RMT channel num and memory block relationship test case to check the memory block range is used in right way.
2018-09-06 19:43:30 +08:00
houchenyao
836d01dcea
ledc test: ignore one case.
...
a bug caused by pcnt. it will fail randomly caused by PCNT bug. It will open when PCNT problem is resolved
2018-09-06 19:43:30 +08:00
houchenyao
f647ea81cc
pcnt test: ignore pcnt two test cases
...
a bug caused by pcnt. these two cases has about 10% fail ratio. they fail randomly in CI. stress test needed. they are ignored until this bug fixed.
2018-09-06 19:42:20 +08:00
houchenyao
22ac8cf424
ledc test: test low speed mode frequency.
...
remove the comment to test the scenario that ledc in low speed mode frequency can be changed, to make sure the bug has been resolved
2018-09-06 17:44:39 +08:00
houchenyao
98c868ff09
gpio test: add GPIO multi-level interrupt test
...
add case to test the bug of v3.0. If we trigger the level interrupt more than once, will cause the interrupt be triggered many times
2018-09-06 17:43:23 +08:00
Ivan Grokhotkov
002d913ab6
uart: add function to set light sleep wakeup threshold
2018-09-06 15:40:46 +08:00
Ivan Grokhotkov
1c5522575e
driver/gpio: support wakeup function for RTC IOs
2018-09-06 15:40:46 +08:00
Angus Gratton
b355854d4d
Merge branch 'master' into feature/cmake
2018-09-05 10:35:04 +08:00
Ivan Grokhotkov
97b2281c49
Merge branch 'bugfix/can_driver_multiple_bugs' into 'master'
...
CAN: Add pm_lock, fix gpio bug, update docs
See merge request idf/esp-idf!3138
2018-09-04 20:34:06 +08:00
Darian Leung
dc3fa14a26
CAN: Add pm_lock, fix gpio bug, update docs
...
This commit does the following
- Add power management lock to CAN driver so that APB frequency does not change
whilst CAN driver is in use
- Fix incorrect flag in can_transmit()
- Refactor can_driver_install() and can_driver_uninstall() so that critical sections
are shorter
- Fix CAN gpio configuration bug on RX pin. Closes #2302
- Add docs about multiple ID configuration and fix example links
2018-09-01 02:46:05 +08:00
Angus Gratton
5fbfd20f10
Merge branch 'master' into feature/cmake
2018-08-30 18:52:31 +08:00
Angus Gratton
a9c4ed7139
Merge branch 'master' into feature/cmake
2018-08-30 18:51:01 +08:00
Ivan Grokhotkov
78fab8a0f9
sdmmc: implement partial DDR support
...
Works for 3.3V eMMC in 4 line mode.
Not implemented:
- DDR mode for SD cards (UHS-I) also need voltage to be switched to 1.8V.
- 8-line DDR mode for eMMC to be implemented later.
2018-08-30 13:11:54 +08:00
Ivan Grokhotkov
de42d99b1d
sdmmc: command layer refactoring
2018-08-30 13:11:54 +08:00
sergiu2014
383464749a
eMMC/MMC support for ESP32
...
Merges https://github.com/espressif/esp-idf/pull/1941
Previous work in https://github.com/espressif/esp-idf/pull/590
2018-08-30 11:36:28 +08:00
Ivan Grokhotkov
80e47a005d
sdmmc host: minor cleanup
...
Code style, comments
2018-08-30 11:36:28 +08:00
Ivan Grokhotkov
9ba5896d86
driver, ethernet: fix non-static inline functions
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81734
2018-08-29 12:49:15 +08:00
Ivan Grokhotkov
fc0c110efd
driver: test: fix memset out of bounds in spi_master test
2018-08-29 12:49:15 +08:00
Michael (XIAO Xufeng)
4f87a62f18
spi_slave: add new menuconfig item to decide whether spi slave should be put into IRAM
2018-08-23 05:21:49 +00:00
Michael (XIAO Xufeng)
e3557b57be
spi: fix the issue that spi cannot be used when flash is disabled
...
The dma configuration function called in the ISR should be put into the IRAM.
Fixes https://github.com/espressif/esp-idf/issues/2307 .
2018-08-23 05:21:49 +00:00
Jeroen Domburg
4eb28b9ace
Merge branch 'feature/spi_burst_desc' into 'master'
...
spi_master: change to DMA burst mode when access descriptors
See merge request idf/esp-idf!2824
2018-08-21 16:54:38 +08:00
michael
404e99965d
spi_master: change high part config to allow transactions of 64 bytes
2018-08-16 18:55:09 +08:00
Angus Gratton
ff2404a272
Merge branch 'master' into feature/cmake
2018-08-16 17:14:17 +10:00
Ivan Grokhotkov
8739111218
Merge branch 'bugfix/gpio_reset_bitmask' into 'master'
...
gpio: Bitmask overflow fix in gpio_reset_pin
See merge request idf/esp-idf!2966
2018-08-10 17:35:26 +08:00
Michael (XIAO Xufeng)
203ceed1e7
spi_master: change to DMA burst mode when access descriptors
2018-08-08 13:56:01 +00:00
Taavi Hein
f7749e18a8
gpio: Bitmask overflow fix in gpio_reset_pin
...
For pins 32 and up the BIT(nr) macro used here overflowed,
causing undetermined GPIO pins to be reset.
Example: freeing SPI device/bus where CS is on pin 33
caused debug UART to cease communication, TXD0 was
disabled.
Fixed as BIT64(nr) macro, to be used elsewhere as needed.
For example in definitions like GPIO_SEL_32..GPIO_SEL_39.
2018-08-08 15:31:17 +03:00
Angus Gratton
a53a5eeabd
Merge branch 'bugfix/add_mutex_for_some_touchpad_apis' into 'master'
...
fix(touch): add_mutex_for_some_touchpad_apis
See merge request idf/esp-idf!2714
2018-08-08 16:28:28 +08:00
Angus Gratton
5f56f2ca01
Merge branch 'feature/nvs_version_check' into 'master'
...
nvs_flash: Version compatibility check for nvs storage
See merge request idf/esp-idf!2855
2018-08-07 13:31:49 +08:00
kooho
2d0af81ccf
driver(uart): Fixed uart tx_empty interrupt wdt timeout bug.
2018-08-05 06:34:34 +00:00
Sagar Bijwe
1df85e0039
nvs_flash: Version compatibility check for nvs storage
...
This change adds a check for compatibility between the nvs version
found on nvs flash and the one assumed by running code during nvs
initialization. Any mismatch is reported to the user using new error
code ESP_ERR_NVS_NEW_VERSION_FOUND.
2018-08-05 00:00:56 +00:00
Angus Gratton
3c5af26506
Merge branch 'test/spi_region' into 'master'
...
spi_master: improve some tests
See merge request idf/esp-idf!2809
2018-08-02 12:09:44 +08:00
fuzhibo
81c762eb86
fix(touch): add_mutex_for_some_touchpad_apis
2018-08-01 18:06:21 +08:00
Michael (XIAO Xufeng)
0aa52057ed
spi_master: enable 2 tests in CI
...
The test is previously disabled for the requirement of external
connection. Now the signals are connected by internal connections.
Also change the failure logic of the test.
2018-07-31 18:04:51 +08:00
Michael (XIAO Xufeng)
fb15f970d2
spi_master: change test to test DMA tx/rx in regions like psram
2018-07-31 18:04:50 +08:00
Mahavir Jain
02ddb7302e
wpa_supplicant: removed unrequired header dir include from component.mk
...
- Also fixed license header in rtc driver
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-07-30 11:17:11 +05:30
Ivan Grokhotkov
caeab09f65
Merge branch 'bugfix/src_encoding' into 'master'
...
Correct source code encoding
See merge request idf/esp-idf!2820
2018-07-24 22:03:46 +08:00
Ivan Grokhotkov
d50c03cc7d
Merge branch 'bugfix/unit-test-build-fix' into 'master'
...
unit-test-app: don’t include project.mk for ut- targets
See merge request idf/esp-idf!2619
2018-07-24 20:48:12 +08:00
Ivan Grokhotkov
f3260cc30f
test/uart: fix compilation warning
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
253930acd1
spi_master, ulp: fix aliasing errors in unit tests
2018-07-24 09:54:55 +03:00
kooho
01516abe5a
Add some comments in pcnt.h.
2018-07-24 10:33:58 +08:00
Ivan Grokhotkov
baa4613fc1
Merge branch 'bugfix/fix_touchpad_wakeup_status' into 'master'
...
fix(sleep): swap touchpad num in wakeup status
See merge request idf/esp-idf!2708
2018-07-24 04:08:43 +08:00
Roland Dobai
0efb4a11ec
Correct source code encoding
2018-07-19 14:00:44 +02:00
Wang Jia Lin
de907e8801
Merge branch 'bugfix/rmt_mem_num_maximum_limit_is_not_accurate' into 'master'
...
bugfix(rmt): Modify the rmt_mem_num maximum limit value from 15 to 8.
See merge request idf/esp-idf!2734
2018-07-18 16:15:14 +08:00
Ivan Grokhotkov
c46b8178f2
Merge branch 'bugfix/sdmmc_auto_stop_cmd' into 'master'
...
sdmmc: enable host auto_stop only for certain commands
See merge request idf/esp-idf!2710
2018-07-18 14:55:45 +08:00
fuzhibo
54a67d92a4
fix(sleep): swap touchpad num in wakeup status
2018-07-17 20:25:06 +08:00
Wang Jia Lin
5480a6b6e5
Merge branch 'bugfix/clear_intr_status_when_enable_intr' into 'master'
...
driver(gpio): fix the gpio interrupt false triggering issue
See merge request idf/esp-idf!2498
2018-07-17 15:44:00 +08:00
XiongYu
6d57757840
Modify the rmt_mem_num maximum limit value from 15 to 8.
2018-07-16 19:10:42 +08:00
hou wen xiang
e2b9b70800
driver(uart): Fix uart time_out bug when using ref_tick
2018-07-16 16:56:14 +08:00
Angus Gratton
e5d2406b1d
Merge branch 'bugfix/spi_cs_setup_fulldup' into 'master'
...
fix(spi_master): allow to use cs_ena_pretrans in full duplex mode without…
See merge request idf/esp-idf!2576
2018-07-16 16:30:36 +08:00
Jiang Jiang Jian
8809fabcd5
Merge branch 'bugfix/ledc_duty_and_freq' into 'master'
...
bugfix(ledc): fix bugs reported from unit-test and github.
See merge request idf/esp-idf!2735
2018-07-16 12:12:48 +08:00
Angus Gratton
2ae758ebcb
Merge branch 'bugfix/spi_sdio_sdkconfig_include' into 'master'
...
sdio_example/spi: fix sdkconfig include issue
See merge request idf/esp-idf!2756
2018-07-16 08:00:15 +08:00
Ivan Grokhotkov
b354770f42
Merge branch 'bugfix/fixes_from_github' into 'master'
...
Fixes from Github
See merge request idf/esp-idf!2730
2018-07-13 15:03:50 +08:00
Ivan Grokhotkov
6d46eed8e4
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-13 03:28:10 +00:00
hou wen xiang
5402ace528
driver(gpio) : Fixed the gpio related bug for release v3.1.
2018-07-12 20:19:02 +08:00
Angus Gratton
a67d5d89e0
Replace all DOS line endings with Unix
...
Command run was:
git ls-tree -r HEAD --name-only | xargs dos2unix
2018-07-12 19:10:37 +08:00
Michael (XIAO Xufeng)
95dbfbe4c0
sdio_example/spi: fix sdkconfig include issue
...
(MINOR CHANGES)
2018-07-12 15:59:16 +08:00
Angus Gratton
04caff2fb2
Merge branch 'fix/sdio_speed_4bit' into 'master'
...
fix(sdio): update sdio to better run in 4bit HS mode
See merge request idf/esp-idf!2704
2018-07-12 08:54:03 +08:00
Darian Leung
882b50dd8c
driver: Fix memory leak in rtc_isr_deregister()
...
Closes #2179
2018-07-11 21:34:09 +08:00
Wangjialin
ab44c6ecc2
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-10 02:22:23 +08:00
Anton Maklakov
27311811e0
Merge branch 'bugfix/gcc8_complation_errors' into 'master'
...
Warnings and errors detected by GCC8
See merge request idf/esp-idf!2703
2018-07-09 22:55:52 +08:00
Alexey Gerenkov
c2dc09304c
gcc8_newlib3: Compilation warnings and errors not specific to newlib v3
2018-07-09 13:22:24 +03:00
Le-Andrew
a8da9c1b96
Fixed typos on booleans.
...
Merges https://github.com/espressif/esp-idf/pull/2067
2018-07-09 14:36:06 +08:00
michael
c34672e7dc
fix(sdmmc): disable all pulldowns used by sdmmc host
2018-07-06 18:17:51 +08:00
michael
597eda5f0b
fix(sdio_slave): improve sdio slave for high speed and 4 bit mode
2018-07-06 18:17:50 +08:00