dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
pios_reset.h
Go to the documentation of this file.
1
14
/*
15
* This program is free software; you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License as published by
17
* the Free Software Foundation; either version 3 of the License, or
18
* (at your option) any later version.
19
*
20
* This program is distributed in the hope that it will be useful, but
21
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23
* for more details.
24
*
25
* You should have received a copy of the GNU General Public License along
26
* with this program; if not, see <http://www.gnu.org/licenses/>
27
*/
28
29
#ifndef PIOS_RESET_PRIV_H
30
#define PIOS_RESET_PRIV_H
31
32
// Private types
33
enum
reboot_flags
{
34
PIOS_RESET_FLAG_UNDEFINED
,
// Undefined reason
35
PIOS_RESET_FLAG_BROWNOUT
,
// POR/PDR or BOR reset
36
PIOS_RESET_FLAG_PIN
,
// Pin reset
37
PIOS_RESET_FLAG_POWERON
,
// POR/PDR reset
38
PIOS_RESET_FLAG_SOFTWARE
,
// Software reset
39
PIOS_RESET_FLAG_INDEPENDENT_WATCHDOG
,
// Independent Watchdog reset
40
PIOS_RESET_FLAG_WINDOW_WATCHDOG
,
// Window Watchdog reset
41
PIOS_RESET_FLAG_LOW_POWER
,
// Low Power reset
42
};
43
44
45
void
PIOS_RESET_Clear
(
void
);
46
int16_t
PIOS_RESET_GetResetReason
(
void
);
47
48
#endif
/* PIOS_RESET_PRIV_H */
PIOS_RESET_FLAG_POWERON
Definition:
pios_reset.h:37
PIOS_RESET_FLAG_INDEPENDENT_WATCHDOG
Definition:
pios_reset.h:39
reboot_flags
reboot_flags
Definition:
pios_reset.h:33
PIOS_RESET_FLAG_LOW_POWER
Definition:
pios_reset.h:41
PIOS_RESET_GetResetReason
int16_t PIOS_RESET_GetResetReason(void)
PIOS_RESET_GetResetReason Does nothing on POSIX systems.
Definition:
pios_reset.c:47
PIOS_RESET_FLAG_WINDOW_WATCHDOG
Definition:
pios_reset.h:40
PIOS_RESET_FLAG_UNDEFINED
Definition:
pios_reset.h:34
PIOS_RESET_FLAG_PIN
Definition:
pios_reset.h:36
PIOS_RESET_FLAG_BROWNOUT
Definition:
pios_reset.h:35
PIOS_RESET_FLAG_SOFTWARE
Definition:
pios_reset.h:38
PIOS_RESET_Clear
void PIOS_RESET_Clear(void)
PIOS_RESET_Clear Does nothing on POSIX systems.
Definition:
pios_reset.c:38
flight
PiOS
inc
pios_reset.h
Generated by
1.8.6