dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_debug.c
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 /* Project Includes */
31 #include "pios.h"
32 
33 // Global variables
34 const char *PIOS_DEBUG_AssertMsg = "ASSERT FAILED";
35 
36 /* Private Function Prototypes */
37 
41 void PIOS_DEBUG_Init(void)
42 {
43 }
44 
49 void PIOS_DEBUG_PinHigh(uint8_t Pin)
50 {
51 }
52 
57 void PIOS_DEBUG_PinLow(uint8_t Pin)
58 {
59 }
60 
61 
63 {
64 }
65 
67 {
68 }
69 
70 
74 void PIOS_DEBUG_Panic(const char *msg)
75 {
76 #ifdef PIOS_COM_DEBUG
78 #endif
79 
80  // tell the user whats going on on commandline too
81  fprintf(stderr,"CRITICAL ERROR: %s\n",msg);
82 
83  abort();
84 }
85 
#define PIOS_COM_DEBUG
Definition: pios_board.h:67
Main PiOS header to include all the compiled in PiOS options.
int32_t PIOS_COM_SendFormattedStringNonBlocking(uintptr_t com_id, const char *format,...)
void PIOS_DEBUG_PinValue8Bit(uint8_t value)
Definition: pios_debug.c:62
void PIOS_DEBUG_PinHigh(uint8_t pin)
Definition: pios_debug.c:49
const char * PIOS_DEBUG_AssertMsg
Definition: pios_debug.c:34
void PIOS_DEBUG_Init(const struct pios_tim_channel *channels, uint8_t num_channels)
Definition: pios_debug.c:44
void PIOS_DEBUG_PinLow(uint8_t pin)
Definition: pios_debug.c:57
uint16_t value
Definition: storm32bgc.c:155
void PIOS_DEBUG_PinValue4BitL(uint8_t value)
Definition: pios_debug.c:66
void PIOS_DEBUG_Panic(const char *msg) __attribute__((noreturn))
Definition: pios_debug.c:74