esp32: counter: samples: fix build config

Remove unnecessary build config and rename
Kconfig build variable.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2022-08-05 11:50:26 -03:00 committed by Kumar Gala
parent fcb9813128
commit 7a58522b54
2 changed files with 1 additions and 5 deletions

View file

@ -11,8 +11,4 @@ config COUNTER_SAM0_TC32
bool
default y if BOARD_ATSAMD20_XPRO
config COUNTER_ESP32
bool
default y if SOC_ESP32 || SOC_ESP32S2
source "Kconfig.zephyr"

View file

@ -29,7 +29,7 @@ struct counter_alarm_cfg alarm_cfg;
#define TIMER DT_NODELABEL(counter0)
#elif defined(CONFIG_COUNTER_XLNX_AXI_TIMER)
#define TIMER DT_INST(0, xlnx_xps_timer_1_00_a)
#elif defined(CONFIG_COUNTER_ESP32)
#elif defined(CONFIG_COUNTER_TMR_ESP32)
#define TIMER DT_NODELABEL(timer0)
#elif defined(CONFIG_COUNTER_MCUX_CTIMER)
#define TIMER DT_NODELABEL(ctimer0)