From 2c1af74f37ca9c4404a4af0db2e04149718d92f6 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 13 Nov 2007 06:45:29 +0000 Subject: [PATCH] declaration outside loop --- core/dev/spi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dev/spi.h b/core/dev/spi.h index 5e418e317..5e097e58e 100644 --- a/core/dev/spi.h +++ b/core/dev/spi.h @@ -1,5 +1,5 @@ /* -*- C -*- */ -/* @(#)$Id: spi.h,v 1.2 2006/09/26 15:48:01 bg- Exp $ */ +/* @(#)$Id: spi.h,v 1.3 2007/11/13 06:45:29 fros4943 Exp $ */ #ifndef SPI_H #define SPI_H @@ -42,7 +42,8 @@ void spi_init(void); #define FASTSPI_TX_MANY(p,c)\ do {\ - for (u8_t spiCnt = 0; spiCnt < (c); spiCnt++) {\ + u8_t spiCnt;\ + for (spiCnt = 0; spiCnt < (c); spiCnt++) {\ FASTSPI_TX(((u8_t*)(p))[spiCnt]);\ }\ } while(0)