From a97fe5615f7e76b194c3d9328cf66f722b5e3b13 Mon Sep 17 00:00:00 2001 From: chenjianqiang Date: Mon, 15 Jul 2019 14:21:36 +0800 Subject: [PATCH] feat(timer): refator timer group driver (partly pick) --- components/driver/include/driver/timer.h | 18 +-- components/soc/esp32/include/hal/timer_ll.h | 133 ++++++++++++++++++++ components/soc/include/hal/timer_types.h | 44 +++++++ 3 files changed, 178 insertions(+), 17 deletions(-) create mode 100644 components/soc/esp32/include/hal/timer_ll.h create mode 100644 components/soc/include/hal/timer_types.h diff --git a/components/driver/include/driver/timer.h b/components/driver/include/driver/timer.h index cbf2a5bd23..cdff8a1b43 100644 --- a/components/driver/include/driver/timer.h +++ b/components/driver/include/driver/timer.h @@ -19,6 +19,7 @@ #include "soc/soc.h" #include "soc/timer_periph.h" #include "esp_intr_alloc.h" +#include "hal/timer_types.h" #ifdef __cplusplus extern "C" { @@ -36,15 +37,6 @@ typedef enum { TIMER_GROUP_MAX, } timer_group_t; -/** - * @brief Select a hardware timer from timer groups - */ -typedef enum { - TIMER_0 = 0, /*!