2 * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __AUL_WATCHDOG_H__
18 #define __AUL_WATCHDOG_H__
25 * @brief Enables watchdog timer.
27 * @return @c 0 on success,
28 * otherwise a negative error value
30 * @remarks This function is only for App Framework internally.
32 int aul_watchdog_enable(void);
35 * @brief Disables watchdog timer.
37 * @return @c 0 on success,
38 * otherwise a negative error value
40 * @remarks This function is only for App Framework internally.
42 int aul_watchdog_disable(void);
45 * @brief Kicks whatchdog timer.
47 * @return @c 0 on success,
48 * otherwise a negative error value
50 * @remarks This function is only for App Framework internally.
52 int aul_watchdog_kick(void);
55 * @brief Starts watchdog timer.
57 * @param[in] interval The interval of the timer
58 * @return @c 0 on success,
59 * otherwise a negative error value
61 * @remarks This function is only for App Framework internally.
63 void aul_watchdog_start(unsigned int interval);
66 * @brief Stops watchdog timer.
68 * @return @c 0 on success,
69 * otherwise a negative error value
71 * @remarks This function is only for App Framework internally.
73 void aul_watchdog_stop(void);
79 #endif /* __AUL_WATCHDOG_H__ */