summaryrefslogtreecommitdiff
path: root/src/debug.h
blob: f62dd966158b0cb4f95bd927033f2f9383a2dc27 (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
#ifndef __DEBUG_SERIAL_H
#define __DEBUG_SERIAL_H

#include <stdio.h>
#include <avr/io.h>
#include "uart.h"
#include "pins.h"

void timer_init();
void test_timer();
void scroll_test();
void screen_lowlvl_testdraw();
void uart_echo();
void test_clock();
void eeprom_testbyte();
void debug_crash();
unsigned int ticks_to_seconds();

#define DEBUG_LED_ON() LED_DEBUG_PORT |= _BV(LED_DEBUG)
#define DEBUG_LED_OFF() LED_DEBUG_PORT &= ~(_BV(LED_DEBUG))



#endif