dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_modules.h
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 #ifndef PIOS_MODULES_H_
31 #define PIOS_MODULES_H_
32 
47 };
48 
49 #ifndef PIOS_NO_MODULES
50 void PIOS_Modules_Enable(enum pios_modules module);
51 bool PIOS_Modules_IsEnabled(enum pios_modules module);
52 #else
53 #define PIOS_Modules_Enable(x) do { (void) (x); } while (0)
54 #endif
55 
56 /* Couldn't really find a better place to put this declaration... */
61 };
62 
63 extern volatile enum actuator_interlock actuator_interlock;
64 
65 /* Ideally would have a better home for this constant */
66 #define DSHOT_CMD_BEACON3 (3)
67 
68 extern int actuator_send_dshot_command(uint8_t cmd_id, uint8_t num_to_send,
69  uint16_t channel_mask);
70 extern void system_annunc_custom_string(const char *string);
71 extern void telemetry_set_inhibit(bool inhibit);
72 
73 #endif // PIOS_MODULES_H_
74 
static uint32_t channel_mask
Definition: pios_servo.c:57
bool PIOS_Modules_IsEnabled(enum pios_modules module)
Definition: pios_modules.c:41
void PIOS_Modules_Enable(enum pios_modules module)
Definition: pios_modules.c:34
actuator_interlock
Definition: pios_modules.h:57
pios_modules
Definition: pios_modules.h:33
void telemetry_set_inhibit(bool inhibit)
Definition: telemetry.c:981
void system_annunc_custom_string(const char *string)
Definition: systemmod.c:417
int actuator_send_dshot_command(uint8_t cmd_id, uint8_t num_to_send, uint16_t channel_mask)
Definition: actuator.c:170