nrf5/hal: Adding structures and init function prototype to hal_rtc.h.
This commit is contained in:
parent
d78d717733
commit
22c62fb53f
|
@ -49,4 +49,22 @@
|
||||||
#error "Device not supported."
|
#error "Device not supported."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RTC Configuration Structure definition
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
} hal_rtc_init_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RTC handle Structure definition
|
||||||
|
*/
|
||||||
|
typedef struct __RTC_HandleTypeDef
|
||||||
|
{
|
||||||
|
NRF_RTC_Type *instance; /* RTC registers base address */
|
||||||
|
hal_rtc_init_t init; /* RTC initialization parameters */
|
||||||
|
uint8_t id; /* RTC instance id */
|
||||||
|
} RTC_HandleTypeDef;
|
||||||
|
|
||||||
|
void hal_rtc_init(NRF_RTC_Type * p_instance, hal_rtc_init_t const * p_rtc_init);
|
||||||
|
|
||||||
#endif // HAL_RTC_H__
|
#endif // HAL_RTC_H__
|
||||||
|
|
Loading…
Reference in New Issue