From 9b084fc376ab6568b10b7c543853e85df4a2a233 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Mon, 26 Dec 2016 16:08:22 +0100 Subject: [PATCH] nrf5/hal: Adding structures and init function prototype to hal_timer.h. --- nrf5/hal/hal_timer.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nrf5/hal/hal_timer.h b/nrf5/hal/hal_timer.h index b3d7149223..18905c9096 100644 --- a/nrf5/hal/hal_timer.h +++ b/nrf5/hal/hal_timer.h @@ -55,4 +55,22 @@ #error "Device not supported." #endif +/** + * @brief Timer Configuration Structure definition + */ +typedef struct { +} hal_timer_init_t; + +/** + * @brief Timer handle Structure definition + */ +typedef struct __Timer_HandleTypeDef +{ + NRF_TIMER_Type *instance; /* Timer registers base address */ + hal_timer_init_t init; /* Timer initialization parameters */ + uint8_t id; /* Timer instance id */ +} Timer_HandleTypeDef; + +void hal_timer_init(NRF_TIMER_Type * p_instance, hal_timer_init_t const * p_timer_init); + #endif // HAL_TIMER_H__