rtc_allocate_device
The interface has the following parameters.
- Syntax:
static struct rtc_device *rtc_allocate_device(void)
- Description: The function is used to allocate an RTC device and then initialize it.
- Parameter: None
- Return:
- Success: The pointer of the allocated RTC device.
- Failure: NULL.