41 Commits

Author SHA1 Message Date
b061230056 feat(esp8266): refactor CCOMPARE timer and system time by microseconds
old: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will increase integer of "_xt_tick_divisor"
     to CCOMPARE and wait for next interrupt triggering

now: CCOMPARE timer triggers when CCOUNT increase to equal to CCOMPARE, then ISR will reset CCOUNT to be 0 and reset CCOMPARE
     to be integer of "_xt_tick_divisor", then wait for next interrupt triggering

Using the new method, we may get the CCOUNT value without considing if it has overflowed.
System running microseconds = g_os_ticks * microseconds per tick + CCOUNT.
2019-08-19 14:03:20 +08:00
43d4d27c11 Merge branch 'bugfix/pwm_channel_num_type_error' into 'master'
bugfix(pwm): fix pwm channel num type error

See merge request sdk/ESP8266_RTOS_SDK!941
2019-05-16 17:09:56 +08:00
4c45455ff0 bugfix(pwm): fix pwm channel num type error
Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/588
2019-05-16 15:51:36 +08:00
2a0b0f601b docs(doxygen): Fix header files which is not doxygen style 2019-05-16 15:07:27 +08:00
f071399ade feat(freertos): Add CPU wait to save power 2019-04-22 17:48:40 +08:00
33463b3ddf Merge branch 'feature/i2s_driver' into 'master'
feature(i2s): add i2s driver

See merge request sdk/ESP8266_RTOS_SDK!868
2019-04-18 14:24:45 +08:00
cac6080e1a bugfix(adc): fix adc warning 2019-04-18 11:38:20 +08:00
8aae2e5764 Merge branch 'feature/simplify_xtensa_code' into 'master'
Simplify xtensa platform code

See merge request sdk/ESP8266_RTOS_SDK!862
2019-04-16 19:56:05 +08:00
913188fdf3 feat(freertos): Simplify xtensa platform code
All normal ISRs are called by "_xt_isr_handler".
2019-04-16 19:49:06 +08:00
cac248c42f feature(i2s): add i2s driver 2019-04-15 20:28:25 +08:00
d11543400e feat(vfs): Modify for esp8266 2019-04-15 17:18:42 +08:00
e36706d776 feat(vfs): Bring vfs from esp-idf
Commit ID: e1e82c89
2019-04-15 17:18:03 +08:00
cdc22f273c feature(adc): add adc example 2019-04-15 12:01:11 +08:00
2f4639710f Merge branch 'feature/uart_tx_done_add_ticks_to_wait' into 'master'
feature(uart): uart tx done add ticks to wait

See merge request sdk/ESP8266_RTOS_SDK!699
2019-03-15 09:19:12 +08:00
7fbb68f4ea feat(esp8266): Add API to get microseconds 2019-03-12 09:39:07 +08:00
ade7165a1a feature(uart): uart tx done add ticks to wait 2019-03-01 21:38:12 +08:00
c39f73f110 bugfix(spi): fix doxygen generation problem 2019-01-30 11:05:53 +08:00
d4f2388a18 refactor(hspi): Refactor hspi driver for esp8266 idf 2019-01-16 11:22:57 +08:00
bc0700a48b refactor(adc): Refactor adc driver for esp8266 idf 2019-01-15 15:34:09 +08:00
7f14c1ea4d fix: fix small typo in pwm
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/419
2018-12-21 08:46:24 +08:00
d1ab0c20dd bugfix(uart): Open uart_wait_tx_done() function and avoid using tx_buffer in uart1 2018-12-07 18:01:45 +08:00
2e391bf5bd Merge branch 'feature/refactor_hw_timer_driver' into 'master'
refactor(hw_timer): Refactor hw_timer driver for esp8266 idf

See merge request sdk/ESP8266_RTOS_SDK!365
2018-11-13 11:07:10 +08:00
d5b14d7427 feat(bootloader): Initialize SPI flash clock and I/O mode at bootloader 2018-11-09 16:52:59 +08:00
2329a7cf73 refactor(hw_timer): Refactor hw_timer driver for esp8266 idf 2018-11-09 16:15:24 +08:00
f35c32e217 Merge branch 'feature/refactor_soft_pwm_driver' into 'master'
refactor(pwm):  Refactor pwm driver for esp8266 idf

See merge request sdk/ESP8266_RTOS_SDK!267
2018-10-19 16:49:24 +08:00
1cf8601373 refactor(pwm): Refactor pwm driver for esp8266 idf. 2018-10-16 15:06:32 +08:00
a5cdc760b4 refactor(i2c): refactor i2c driver for idf 2018-09-28 15:35:45 +08:00
b3b3f9d3ef feat(spi_flash): Refactor SPI flash for saving IRAM 2018-09-17 16:12:39 +08:00
8c97d2956c bugfix(gpio): Repair GPIO interrupt function
Because the interrupt structure of esp8266 and esp32 is not the same, the following functions need to be deleted
* Delete the gpio_intr_enable() and gpio_intr_disable() functions

Related issues
* Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/282
* Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/284
2018-08-16 11:27:53 +08:00
97335027c7 refactor(driver): Refactor uart driver for esp8266 idf 2018-08-10 13:39:53 +08:00
374657a8c5 feat(esp8266): Remove old drivers 2018-08-09 20:07:23 +08:00
8fdffe47ad refactor(gpio): Refactor gpio driver for esp8266 idf 2018-08-09 10:57:00 +08:00
9d0b024433 feat(esp8266): Refactor ets system headler file 2018-06-27 11:39:50 +08:00
c8ac7cc2be fix(esp8266): Fix header files dependency in esp8266
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/197
2018-05-31 17:30:14 +08:00
e518650b36 feat: Don't use c_types.h in SDK 2018-05-24 20:41:29 +08:00
3c560f678a feat(driver): Clean up header files dependency 2018-05-23 16:43:29 +08:00
78bdcf043e feat(driver): Use standard typedef 2018-05-23 15:24:05 +08:00
a08d0711a4 feat(driver): Use astyle to format the code 2018-05-23 15:16:16 +08:00
ae6c134ec4 feat(driver): Update to use apache license 2018-05-23 15:14:08 +08:00
f82e9be787 fix: Fixing lots of compilation warnings
- fix(esp8266):
  - Adding includes for missing symbols.
  - Removing unused variables.
  - Skip unsupported packing pragmas.
  - Add rom_functions.h for symbols that come from the ESP ROM. Add attributes on
ets_printf so GCC will check the syntax of the formatting string and types of
the arguments.
  - Add ETS_GPIO_INTR_EN(DIS)ABLE macro.
  - Use gpio_output_conf instead of gpio_output_set.

- fix(freertos):
  - Define functions that are useful.
  - Use correct printf symbols when printing.

- fix(lwip):
  - Ignore the warning in sntp.

- fix(mqtt):
  - `xTicksToWait` is unsigned, can't check for less than zero. Remove
unused variables.

- fix(newlib):
  - `_free_r()` returns `void`, not `void *`.
  - Adding includes for missing symbols.

- fix(ssl):
  - Make sure functions always return a value.

Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/188
2018-05-23 14:52:26 +08:00
3e1f0b973e feat(esp2866): Move driver to esp8266 of components 2018-04-08 10:38:18 +08:00