Mercurial > ~darius > hgwebdir.cgi > avr
changeset 9:7ed10c59ba06
Supply clock speed via the command line so 1wire-delay.h can use it.
author | darius |
---|---|
date | Mon, 12 Jul 2004 17:51:20 +0930 |
parents | f9a085a0ba93 |
children | eb1faf51968e |
files | Makefile testavr.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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 <darius@dons.net.au>. 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);