dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_irq.c
Go to the documentation of this file.
1 
16 /*
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation; either version 3 of the License, or
20  * (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful, but
23  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25  * for more details.
26  *
27  * You should have received a copy of the GNU General Public License along
28  * with this program; if not, see <http://www.gnu.org/licenses/>
29  */
30 
31 /* Project Includes */
32 #include "pios.h"
33 
34 /* Private Function Prototypes */
35 
40 int32_t PIOS_IRQ_Disable(void)
41 {
42 #if defined(PIOS_INCLUDE_CHIBIOS)
43  chSysDisable();
44 #endif
45  return 0;
46 }
47 
53 int32_t PIOS_IRQ_Enable(void)
54 {
55 #if defined(PIOS_INCLUDE_CHIBIOS)
56  chSysEnable();
57 #endif
58  return 0;
59 }
60 
61 bool PIOS_IRQ_InISR(void)
62 {
63  return false;
64 }
65 
int32_t PIOS_IRQ_Enable(void)
Definition: pios_irq.c:53
Main PiOS header to include all the compiled in PiOS options.
bool PIOS_IRQ_InISR(void)
Definition: pios_irq.c:61
int32_t PIOS_IRQ_Disable(void)
Definition: pios_irq.c:40