Marius Vikhammer
edb76f14d6
esp_timer: remove legacy ESP32 FRC timer implementation.
2022-02-10 15:17:49 +08:00
Anton Maklakov
3a04b712fa
Merge branch 'bugfix/fix_abs_using' into 'master'
...
build: fix abs() use
See merge request espressif/esp-idf!16952
2022-02-10 05:18:32 +00:00
morris
ef00bd59dc
esp_rom: extract int matrix route and cpu ticks getter
2022-02-09 13:52:20 +08:00
Anton Maklakov
8bb06df68f
components: correct abs() use for unsigned and 64-bit arguments
2022-01-29 12:07:16 +07:00
laokaiyao
cf049e15ed
esp8684: rename target to esp32c2
2022-01-19 11:08:57 +08:00
Mahavir Jain
203f82cc49
Fix various warnings generated from Coverity scan
...
esp_timer:
Control flow issues (DEADCODE)
Execution cannot reach this statement: "break;".
protocomm_httpd:
(UNUSED_VALUE)
Assigning value from "cookie_session_id" to "cur_cookie_session_id" here, but that stored value is overwritten before it can be used.
esp_flash_api:
Null pointer dereferences (REVERSE_INULL)
Null-checking "chip" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
2021-12-09 09:38:53 +05:30
Cao Sen Miao
eddc196081
esp_clk: refactor target/clk.h to private/esp_clk.h
2021-11-26 14:56:30 +08:00
Sudeep Mohanty
5806e57773
esp_timer: Added esp_timer_get_period/expiry_time APIs
...
Added the following new APIs to the esp_timer module:
- esp_timer_get_period(): Returns the period of a timer in microseconds.
- esp_timer_get_expiry_time(): Returns the timeout value of a one-shot timer in microseconds.
Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-11-11 15:13:05 +05:30
morris
16677b0d3c
global: make periph enable/disable APIs private
...
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
Cao Sen Miao
5add6593f4
ESP8684: Add esp_gdbstub, mbedtls, esp_timer
2021-11-06 17:33:45 +08:00
Cao Sen Miao
b0123199da
esp_timer: init rtc timer and system timer in early init
2021-10-26 19:07:34 +08:00
Ivan Grokhotkov
249abb3fe8
esp_timer: allow querying the timer before esp_timer_init is called
2021-10-26 19:07:34 +08:00
Konstantin Kondrashov
29f581fc70
freertos(esp32s3): SysTick uses systimer
2021-08-04 20:33:44 +08:00
KonstantinKondrashov
c19b37d2a9
esp_system: Adds sync of FRC & RTC counters in esp_restart
...
In case when FRC and RTC counters are very different then
the need to sync them before to restart the ESP
to get the correct system time after reboot.
2021-07-21 10:23:24 +05:00
Shu Chen
6fce2930d0
esp32h2: enable more components to support esp32h2
...
Involved components:
* app_trace
* esp-tls
* esp_adc_cal
* esp_pm
* esp_serial_slave_link
* esp_timer
* freertos
* idf_test
* log
* mbedtls
* newlib
* perfmon
* spi_flash
* spiffs
* ulp
* unity
* vfs
2021-07-01 19:53:11 +08:00
Rahul Tank
3159ba1d5a
Add esp_timer_is_active function for Nimble stack to use esp_timer instead of FreeRTOS timer
2021-06-30 10:06:40 +05:30
KonstantinKondrashov
f9ad16bb66
esp_timer: Timers with skip_unhandled_events option won't wake up system from light sleep
2021-06-19 12:45:17 +08:00
morris
988c88a6b1
systimer: optimise esp_timer_get_time
2021-04-26 11:54:02 +08:00
morris
ec898b771e
systimer: strip hal driver
2021-04-22 21:08:39 +08:00
Renz Bagaporo
74de5a7c58
esp_timer: correct startup time
2021-03-25 15:38:27 +08:00
KonstantinKondrashov
7bbf4a3422
esp_timer: Fix Test ESP_TIMER_ISR dispatch method is not blocked
2021-02-24 16:08:17 +08:00
Angus Gratton
fb1488abba
Merge branch 'feature/esp_timer_isr_dispatch_method_restore' into 'master'
...
esp timer: Add ISR dispatch method
Closes IDF-1172 and IDF-1173
See merge request espressif/esp-idf!11572
2021-02-23 06:21:14 +00:00
Sachin Parekh
296d10e675
esp_timer: Label each column of timer dump
2021-02-11 18:40:51 +05:30
KonstantinKondrashov
63d4911cdb
esp_timer: Add ESP_TIMER_ISR dispatch method
...
Using own spinlock for each list (TASK and ISR disp method)
Reduced the dependency of ISR on the TASK dispatch method
2021-02-08 19:10:11 +08:00
KonstantinKondrashov
bcbee89030
esp_timer: Add a Kconfig option to configure the interrupt level
2021-02-08 18:27:10 +08:00
KonstantinKondrashov
aa96c9a4d8
esp_timer: Add an option to skip unhandled events for periodic timers
...
- Added an option to skip unhandled events for periodic timers. Useful for light sleep.
- Added doc about this case
- Added Test a latency between a call of callback and real event (14-16us). and UT to check skip_unhandled_events.
- Fixed for esp_timer_dump() if name of timer is NULL
- Refactored timer_process_alarm()
- Added the delete function after using in UTs
2020-12-09 17:19:19 +08:00
Angus Gratton
5228d9f9ce
esp32c3: Apply one-liner/small changes for ESP32-C3
2020-12-01 10:58:50 +11:00
Angus Gratton
7c08be5771
hal: Add initial ESP32-C3 support
...
From internal commit 7761d6e8
2020-11-30 15:23:15 +11:00
Angus Gratton
420aef1ffe
Updates for riscv support
...
* Target components pull in xtensa component directly
* Use CPU HAL where applicable
* Remove unnecessary xtensa headers
* Compilation changes necessary to support non-xtensa gcc types (ie int32_t/uint32_t is no
longer signed/unsigned int).
Changes come from internal branch commit a6723fc
2020-11-13 07:49:11 +11:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
KonstantinKondrashov
e0d0200aed
esp_timer: Use Task Notification instead of semaphore
2020-11-06 06:43:22 +00:00
Angus Gratton
4df4bd9558
Merge branch 'bugfix/clock_getres_accuracy_resolution' into 'master'
...
newlib: Fix clock_getres() improves accuracy
See merge request espressif/esp-idf!10743
2020-10-22 16:50:29 +08:00
Angus Gratton
e5f06d7f47
Merge branch 'feature/esp32s3_support_gettimeofday' into 'master'
...
time: Fix gettimeofday for ESP32-S3
See merge request espressif/esp-idf!10871
2020-10-20 14:09:36 +08:00
Konstantin Kondrashov
9386cafbc3
time: Fix gettimeofday for ESP32-S3
2020-10-20 14:09:32 +08:00
Michael (XIAO Xufeng)
1966f00f0b
soc: updates caps usage
...
We should define caps as 1 if true. When use the caps macros, #if and
#if ! should be used instead of #ifdef/#ifndef.
2020-10-17 16:10:17 +08:00
KonstantinKondrashov
7ae7adf16a
newlib: Fix clock_getres() improves accuracy
...
Returns not rounded value of resolution for WITH_RTC and !WITH_FRC
2020-10-07 18:01:35 +08:00
morris
cc66334014
esp_timer: initial support on esp32-s3
2020-09-22 15:15:03 +08:00
morris
61f89b97c6
bringup esp32-s3 on FPGA
2020-09-22 15:15:03 +08:00
Ivan Grokhotkov
0acf94f10f
esp_timer: fix CONFIG_PM_USE_RTC_TIMER_REF option usage
...
Also remove PM_USE_RTC_TIMER_REF in esp32s2, since this option is only
used in FRC implementation of esp_timer.
Closes https://github.com/espressif/esp-idf/issues/4991
2020-09-04 19:19:26 +00:00
Renz Bagaporo
e70f240e12
esp_timer: do init check in timer implementation
2020-09-01 15:01:11 +08:00
Renz Bagaporo
c70c227591
esp_system: private system time functions for now
2020-08-11 17:52:36 +08:00
Renz Bagaporo
da88671491
esp_system: link time, not runtime, dependency on esp_timer
2020-08-11 17:52:36 +08:00
Renz Bagaporo
346cf4430d
esp_system: introduce system time functions
...
- Introduce system time function and concept of system time provider.
esp_timer is system time provider when present.
- Set the reference point for system time, g_startup_time.
- Use the system time functions in newlib instead of calling esp_timer
functions directly
2020-08-10 15:12:38 +08:00
morris
2917651478
esp_rom: extract common ets apis into esp_rom_sys.h
2020-07-27 15:27:01 +08:00
David Cermak
f13f8927b1
esp-timer: fix (ignore) false positive memory alloc/free issue found by static analyser
2020-05-13 07:30:26 +02:00
morris
890fc0fe67
esp_timer: alias esp_timer_get_time
...
alias esp_timer_get_time to improve performance
2020-04-01 16:51:43 +08:00
morris
2d1885b906
systimer: add HAL layer
2020-04-01 16:51:43 +08:00
Konstantin Kondrashov
739eb05bb9
esp32: add implementation of esp_timer based on TG0 LAC timer
...
Closes: IDF-979
2020-02-06 14:00:18 +08:00