-
Notifications
You must be signed in to change notification settings - Fork 0
/
avr_debug.h
executable file
·48 lines (35 loc) · 1.2 KB
/
avr_debug.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Leg
*
* Copyright (C) 2017 Adam Williams <broadcast at earthling dot net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef AVR_DEBUG_H
#define AVR_DEBUG_H
extern int uart_used;
extern volatile uint8_t have_uart_in;
extern volatile uint8_t uart_in;
void print_text(const char *string);
void print_bin(uint8_t number);
void print_hex(int number);
void print_number(int number);
void print_number_unsigned(uint16_t number);
void flush_serial();
void handle_serial();
void init_serial();
void send_byte(unsigned char x);
#endif