nrf5/hal: Adding structures and init function prototype to hal_timer.h.

This commit is contained in:
Glenn Ruben Bakke 2016-12-26 16:08:22 +01:00
parent 8cce985765
commit 9b084fc376
1 changed files with 18 additions and 0 deletions

View File

@ -55,4 +55,22 @@
#error "Device not supported." #error "Device not supported."
#endif #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__ #endif // HAL_TIMER_H__