Ivan Grokhotkov
b6f37bda97
Merge branch 'feature/i2s_built_in_adc' into 'master'
...
feature(I2S-ADC): add ADC mode for I2S.
See merge request !1077
2017-10-20 15:52:56 +08:00
Angus Gratton
477ed8ce62
Merge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'
...
bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.
See merge request !1288
2017-10-20 14:18:32 +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
edb212986f
Merge branch 'bugfix/sd_card_fixes' into 'master'
...
SD card fixes
See merge request !1393
2017-10-17 04:45: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
Ivan Grokhotkov
3cf23ff77d
sdmmc: allow command timeouts to be configured
...
Previously the timeout was set to the same value (1000ms) for all kinds
of commands. In some cases, such as with slow cards, write commands
failed to complete in time.
This change makes command timeouts configurable via sdmmc_host_t
structure, and also makes default timeouts different for ordinary
commands and write commands.
Closes https://github.com/espressif/esp-idf/issues/1093
Ref TW15774.
2017-10-13 08:16:07 +08:00
Jiang Jiang Jian
8e47c355fa
Merge branch 'feature/i2s_apll' into 'master'
...
driver/i2s: add support apll clock
See merge request !1115
2017-10-12 19:06:50 +08:00
Jiang Jiang Jian
e0922c9564
Merge branch 'bugfix/i2s_set_pin_valid_gpio' into 'master'
...
change to GPIO_IS_VALID_OUTPUT_GPIO for data out pin
See merge request !764
2017-10-12 18:21:25 +08:00
Jiang Jiang Jian
da247c2cf8
Merge branch 'bugfix/ledc_duty_type_change' into 'master'
...
ledc_get_duty return type changed from int to uint32_t, target_duty changed from int to uint32_t
See merge request !752
2017-10-12 18:18:33 +08:00
Jeroen Domburg
a8131b14b0
Merge branch 'feature/docs_update_uart_api' into 'master'
...
Updated functional overview of UART API documentation
See merge request !1328
2017-10-10 14:06:08 +08:00
Jeroen Domburg
1835c3a213
Merge branch 'feature/docs_update_pcnt_api' into 'master'
...
Extended description of the Pulse Counter API and removed redundant comments from the example
See merge request !1312
2017-10-10 14:06:03 +08:00
krzychb
9107b47deb
Updated UART API documentation and examples. Included a fix of #1091 from GitHub
2017-10-10 05:54:36 +02:00
Tuan PM
9d39881981
i2s: add support apll clock
...
using apll_param to setup APLL
new apll calculation method, much faster
validate freq calculation
Ensure that the i2s frequency is greater than the hardware limit
Add description of how to calculate apll clock, support apll for other 16-bits audio, check rev0 chip
correct space
2017-10-06 15:36:24 +07:00
Angus Gratton
0dd9b899b7
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
...
Also refactor use of direct clock access in unit test ref_clock (probably not a real issue)
2017-10-02 17:48:16 +11:00
michael
fcd0f52e21
test(spi_master): add test case for 3 DMA issues with internal connection by gpio mux.
...
3 issues are:
1. RX buffer not aligned (start and end)
2. not setting rx_buffer
3. setting rx_length != length
also add spi release code here.
2017-09-27 10:44:28 +08:00
krzychb
e69691427c
Extended description of the Pulse Counter API and removed redundant comments from the example
2017-09-26 22:44:46 +02:00
krzychb
b5e4c76bfe
Updated sigma delta API documenation and example
2017-09-25 21:31:09 +02:00
Ivan Grokhotkov
64d1f947ed
driver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26
...
This error prevented EXT1 wakeup using GPIO26 from working.
2017-09-21 12:26:03 +08:00
Simon Werner
45ad0cdda2
Improved uart_flush()
documentation.
...
Improved `uart_flush()` documentation based on this discussion: https://esp32.com/viewtopic.php?f=13&t=2804&p=13377&hilit=uart_flush#p13373
Merges https://github.com/espressif/esp-idf/pull/970
2017-09-20 12:09:44 +10:00
Wangjialin
449f9e10a3
bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.
2017-09-19 20:10:39 +08:00
michael
1b91cb7be0
fix(sdspi): fix issues causing the sdspi driver to work low efficiently with DMA.
2017-09-19 19:00:47 +08:00
michael
074f36afff
fix(spi_master): fix the heap corruption bug that RX DMA writes over the temporary buffer boundary.
...
TW#15434
Closes #994 .
2017-09-19 16:47:14 +08:00
Kewal Shah
379320bdb2
change to GPIO_IS_VALID_OUTPUT_GPIO for data out pin
2017-09-14 13:33:39 +08:00
Wangjialin
2fceec4d85
feature(I2S-ADC): add ADC mode for I2S.
...
1. Support built-in ADC for I2S.
2. Modify code of ADC, made no change to the original APIs.
3. Add APIs in I2S:
esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel);
4. Add I2S ADC/DAC example code.
5. add old-fashion definition to make it more compatible
6. replase spi_flash_ APIs with esp_partition_ APIs
7. add example of generating audio table from wav
8. change example sound
2017-09-14 13:24:08 +08:00
Kewal Shah
c4f15a0e5d
ledc_get_duty return type changed from int to uint32_t, target_duty changed from int to uint32_t
2017-09-13 01:43:42 +08:00
Ivan Grokhotkov
23f10e1a57
Merge branch 'feature/uart_software_flow_control' into 'master'
...
uart: Add api call to switch on hardware support for 'software' flow control. (github #890 )
See merge request !1215
2017-09-12 12:11:11 +08:00
Ivan Grokhotkov
de038f502c
Merge branch 'feature/gpio_channel_macro' into 'master'
...
feat(global): add macros for GPIO->channel lookup
See merge request !1170
2017-09-11 12:15:08 +08:00
Ivan Grokhotkov
e12967297d
Merge branch 'feature/docs_touch_pad_api' into 'master'
...
Touch Pad driver overview
See merge request !1195
2017-09-08 11:55:27 +08:00
Ivan Grokhotkov
3c470e7c43
Merge branch 'bugfix/rmt' into 'master'
...
RMT 2 fixes: Rename one API and specify wait_time in another API
See merge request !896
2017-09-07 18:03:08 +08:00
michael
08b9fbc242
feat(global): add macros for GPIO->channel lookup
...
including: macros for dac, adc, touch, rtc_gpio, uart and clk_out.
TW#13970
2017-09-07 10:40:25 +08:00
Alex Burr
93cc3a77cb
uart: Add api call to switch on hardware support for 'software' flow control.
...
Cherry-picks https://github.com/espressif/esp-idf/pull/890
2017-09-05 16:30:21 +10:00
krzychb
ba42c46cb3
Touch Pad driver overview
2017-09-05 08:28:44 +02:00
Ivan Grokhotkov
b38186dc43
sdmmc: use periph_ctrl to enable peripheral when initializing the host
2017-09-04 22:43:52 +08:00
Ivan Grokhotkov
956a28a95c
driver: add periph_ctrl support for SDMMC, SDIO slave, CAN, EMAC
2017-09-04 22:43:51 +08:00
michael
b834fcf78a
fix(spi_master): this fix the SPI MOSI output missing bug.
2017-09-04 22:43:51 +08:00
Jeroen Domburg
fe140fe347
Fix off-by-one in 5MBaud arg checking; propagate errors better
2017-09-01 12:15:28 +08:00
Ivan Grokhotkov
1cfe96b1d7
Merge branch 'bugfix/i2s_dac_channel' into 'master'
...
fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1.
See merge request !1169
2017-08-31 10:45:30 +08:00
Ivan Grokhotkov
b4857fc159
Merge branch 'bugfix/memory_issues_pr838' into 'master'
...
vfat, i2s, mdns: Fix two memory leaks, one double free (github #838 )
See merge request !1173
2017-08-31 10:45:19 +08:00
Angus Gratton
96f9ae3e30
Merge branch 'bugfix/minor_prs_github' into 'master'
...
Minor bugfixes and corrections from github
See merge request !1181
2017-08-31 07:11:30 +08:00
Angus Gratton
4f812eb29c
Remove redundant code line from uart.c
...
Merges part of https://github.com/espressif/esp-idf/pull/650
2017-08-30 17:55:00 +10:00
Simon Werner
c8d8fb58e7
Fixed incorrect value in comments for GPIO_NUM_33.
...
Merges https://github.com/espressif/esp-idf/pull/676
2017-08-30 17:55:00 +10:00
Henrik Maier
95fe7929c0
Fix spinlock bug for uart_set_rts and uart_set_dtr
...
Merges https://github.com/espressif/esp-idf/pull/649
2017-08-30 15:32:23 +10:00
Quentin Thérond
36eccee213
i2s: fix leak in i2s_create_dma_queue if we have a malloc issue.
2017-08-30 12:11:03 +10:00
Darian Leung
88b05f9391
esp_adc_cal: Added ADC calibration component
...
Added component containg API that is able to correct raw ADC readings
into a voltage in mV. Also provided a helper function that combines
the process of getting the raw ADC1 reading then converting it to a
voltage in mV. In doing so, the adc1_get_voltage() function of the ADC
driver has been deprecated. Instead there is now adc1_get_raw to obtain
the raw ADC1 reading, and adc1_to_voltage() that gets the raw reading
and converts all in one function. Functions using the deprecated
adc1_get_voltage() have also been updated to use adc1_get_raw().
Conversion is based on ADC characteristics. The characteristics are based
on the ADC's v_ref, herefore the appropriate structure and functions have
been provided to obtain the ADC characteristics.
The existing ADC driver has also been modified by adding a function to
route the internal ADC reference voltage to a GPIO allowing users to measure
it manually.
Relevant documentation has also been updated
2017-08-29 18:43:14 +08:00
michael
9ec3757349
fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1.
2017-08-29 15:31:39 +08:00
Jeroen Domburg
edbeee8326
Merge branch 'bugfix/spi_def_typo_lsbfirst' into 'master'
...
bugfix(spi_master): fix the definition of ``SPI_DEVICE_BIT_LSBFIRST``.
See merge request !1154
2017-08-29 11:24:31 +08:00
Ivan Grokhotkov
3161854efb
Merge branch 'bugfix/spi_hd_rx' into 'master'
...
fix(spi_dma_rx): add check to avoid using SPI half-duplex mode DMA with both MOSI and MISO phases.
See merge request !1111
2017-08-28 17:36:58 +08:00
Ivan Grokhotkov
b636f81619
Merge branch 'bugfix/spi_command' into 'master'
...
fix(spi_master): fix the command field to make it more intuitive to use.
See merge request !1119
2017-08-28 10:29:56 +08:00