nrf5/hal: Adding structures and init function prototype to hal_timer.h.
This commit is contained in:
parent
8cce985765
commit
9b084fc376
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user