Move RTTY_BAUD define into config.h

master
Philip Heron 2010-06-08 11:28:37 +01:00
rodzic 5179344daf
commit 825f4d57b2
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -11,7 +11,8 @@
#ifndef INC_CONFIG_H
#define INC_CONFIG_H
#define F_CPU (7372800) /* Ticks per second */
#define CALLSIGN "hadie" /* The mission callsign */
#define F_CPU (7372800) /* Ticks per second */
#define CALLSIGN "hadie" /* The mission callsign */
#define RTTY_BAUD (300) /* RTTY baud rate */
#endif

2
rtty.c
Wyświetl plik

@ -8,12 +8,10 @@
/* copy should be included with this source. */
#include "config.h"
#include <stdint.h>
#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#define RTTY_BAUD (300)
#define RTTY_DELAY (1000000 / RTTY_BAUD)
/* MARK = Upper tone, Idle, bit */