Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
12#ifndef _DEBUG_H
13#define _DEBUG_H
14
15#include "support/configCosmosKernel.h"
16#include <Arduino.h>
17#include <stdint.h>
18
19namespace Helpers {
20 enum Short_Name : uint8_t {
21 RFM23 = 1,
22 RFM98,
23 LI3,
24 PDU,
25 RPI,
26 MAIN,
27 };
28
29 void connect_serial_debug(long baud);
30 void print_debug(Short_Name channel, const char *msg);
31 void print_debug(Short_Name channel, const char *msg, u_int32_t iretn);
32 void print_debug(Short_Name channel, const char *msg, int32_t iretn);
33 void print_hexdump(Short_Name channel, const char *msg, uint8_t *src,
34 uint8_t size);
35 void print_debug_rapid(Short_Name channel, const char *msg);
36 void print_debug_rapid(Short_Name channel, const char *msg, u_int32_t iretn);
37} // namespace Helpers
38
39#endif // _DEBUG_H