# HG changeset patch # User darius # Date 1089620480 -34200 # Node ID 7ed10c59ba066a419934ad9941986a42043f8ca4 # Parent f9a085a0ba9320acd7f12461b7433bf4588cd85b Supply clock speed via the command line so 1wire-delay.h can use it. diff -r f9a085a0ba93 -r 7ed10c59ba06 Makefile --- a/Makefile Mon Jul 12 17:50:42 2004 +0930 +++ b/Makefile Mon Jul 12 17:51:20 2004 +0930 @@ -2,6 +2,6 @@ SRCS=1wire.c testavr.c PART=8515 -CFLAGS=-Os -g -Wall +CFLAGS=-Os -g -Wall -DXTAL_CPU=4000000 .include "Makefile.avr" diff -r f9a085a0ba93 -r 7ed10c59ba06 testavr.c --- a/testavr.c Mon Jul 12 17:50:42 2004 +0930 +++ b/testavr.c Mon Jul 12 17:51:20 2004 +0930 @@ -1,4 +1,8 @@ /* + * Test various AVR bits and pieces + * + * $Id$ + * * Copyright (c) 2004 * Daniel O'Connor . All rights reserved. * @@ -35,7 +39,6 @@ #include "1wire.h" #define UART_BAUD_SELECT(baudRate,xtalCpu) ((xtalCpu)/((baudRate)*16l)-1) -#define XTAL_CPU 4000000 /* 4Mhz */ #define UART_BAUD_RATE 19200 void uart_putsP(const char *addr);