mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
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.
This commit is contained in:
@@ -103,7 +103,7 @@ void esp_timer_impl_advance(int64_t time_us)
|
||||
esp_err_t esp_timer_impl_init(intr_handler_t alarm_handler)
|
||||
{
|
||||
s_alarm_handler = alarm_handler;
|
||||
#ifdef SOC_SYSTIMER_INT_LEVEL
|
||||
#if SOC_SYSTIMER_INT_LEVEL
|
||||
int int_type = 0;
|
||||
#else
|
||||
int int_type = ESP_INTR_FLAG_EDGE;
|
||||
|
Reference in New Issue
Block a user