1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-10 14:42:08 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
eea9999dc5 Revert "Allman now (#6080)" (#6090)
This reverts commit 98125f8860.
2019-05-14 00:09:54 +02:00
98125f8860 Allman now (#6080)
* switch restyle script for CI

* remove confirmation

* restyle with allman
2019-05-13 16:41:34 +02:00
cf21dfda64 i2s can send now buffers (#5349)
* i2s can send now buffers

* adding mono and stereo, with blocking and non blocking support

* fixing crash

* cosmetic changes

* we dont need the & 0xffff

* using unsigned integers since we'll never be using negative numbers
2018-11-24 02:00:34 -03:00
8ae553d99e I2s input API and examples (#4539)
Enables I2S stereo input via DMA using new API calls:

. i2s_rxtx_begin(bool rx, rool tx);
. i2s_read_sample(uint32_t *l, uint32_t *r);

Original API calls will only enable TX, so this is backwards compatible.

Add simple I2S input example code using Arduino serial plotter.

Add UDP transmit of I2S microphone data to a PC (remote microphone).

Clean up and reorganize code to share RX and TX logic as much as
possible.  Fix a potential WDT error while in blocking sample read
and write.
2018-04-02 07:37:21 -07:00
f9110f51c2 Add I2S callback on DMA read (#4205)
Add optional callback after every DMA buffer interrupt for lower delay, better timing control of I2S output.
2018-03-19 09:25:34 -07:00
0fe725909e Update I2S base frequency and frequency dividers to real ones (#4031)
* Fix I2S base frequency
* Update frequency dividers for I2S
Reference: https://github.com/espressif/ESP8266_MP3_DECODER/blob/master/mp3/driver/i2s_freertos.c
* fixed i2s_set_rate, added i2s_get_real_rate() and i2s_set_dividers
* Minimise float calculations
2018-01-20 15:58:42 -08:00
08cdf153d4 added int16_t i2s_available(); it returns the number of samples than can be (#3988)
written before blocking
2017-12-17 21:34:38 -03:00
bd5b5d35f0 I2S optimizations
zero buffers so they are mute in case of underflow
add non-blocking write (returns false if DMA was full)
add checks for full and empty DMA
add some comments to the header
2015-10-29 10:51:51 +02:00
64aaec8f54 more typos 2015-06-22 16:16:09 +03:00
3a525e47cf add I2S core 2015-06-22 15:47:22 +03:00