38 lines
772 B
C

/* volc rtc example code
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize the Volc RTC module.
*
* @return
* - ESP_OK: Initialization was successful.
* - Other: Appropriate erro code indicating the failure reason.
*/
esp_err_t volc_rtc_init(void);
/**
* @brief Deinitialize the Volc RTC module..
*
* @return
* - ESP_OK: Deinitialization was successful.
*/
esp_err_t volc_rtc_deinit(void);
#ifdef __cplusplus
}
#endif