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_modules.c
Go to the documentation of this file.
1
11
/*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20
* for more details.
21
*
22
* You should have received a copy of the GNU General Public License along
23
* with this program; if not, see <http://www.gnu.org/licenses/>
24
*
25
* Additional note on redistribution: The copyright and license notices above
26
* must be maintained in each individual source file that is a derivative work
27
* of this source file; otherwise redistribution is prohibited.
28
*/
29
30
#include "
pios.h
"
31
32
static
bool
modules_enabled
[
PIOS_MODULE_NUM
] = {
false
, };
33
34
void
PIOS_Modules_Enable
(
enum
pios_modules
module)
35
{
36
if
(module >=
PIOS_MODULE_NUM
)
37
return
;
38
modules_enabled
[module] =
true
;
39
}
40
41
bool
PIOS_Modules_IsEnabled
(
enum
pios_modules
module)
42
{
43
if
(module >=
PIOS_MODULE_NUM
)
44
return
false
;
45
return
modules_enabled
[module];
46
}
47
pios.h
Main PiOS header to include all the compiled in PiOS options.
PIOS_Modules_IsEnabled
bool PIOS_Modules_IsEnabled(enum pios_modules module)
Definition:
pios_modules.c:41
PIOS_Modules_Enable
void PIOS_Modules_Enable(enum pios_modules module)
Definition:
pios_modules.c:34
modules_enabled
static bool modules_enabled[PIOS_MODULE_NUM]
Definition:
pios_modules.c:32
pios_modules
pios_modules
Definition:
pios_modules.h:33
PIOS_MODULE_NUM
Definition:
pios_modules.h:46
flight
PiOS
Common
pios_modules.c
Generated by
1.8.6