blob: 8b6e8190fc26924bd04b9ec09c24bebac16a4f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef DEBUG_UART_H_
#define DEBUG_UART_H_
#include "util.h"
#include <stdint.h>
void debug_print_int32(const char __flash *prefix, int32_t value);
void debug_print_int24(const char __flash *prefix, int24_t value);
void debug_print_int16(const char __flash *prefix, int16_t value);
void debug_report_int32(const char __flash *prefix,
int32_t *old_value,
int32_t new_value);
void debug_report_int24(const char __flash *prefix,
int24_t *old_value,
int24_t new_value);
void debug_report_int16(const char __flash *prefix,
int16_t *old_value,
int16_t new_value);
void debug_enable(bool enable);
bool debug_is_enabled(void);
void debug_uart_init(void);
#endif /* DEBUG_UART_H_ */
|