declaration outside loop
This commit is contained in:
parent
7738b86b46
commit
2c1af74f37
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* -*- C -*- */
|
/* -*- 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
|
#ifndef SPI_H
|
||||||
#define SPI_H
|
#define SPI_H
|
||||||
|
@ -42,7 +42,8 @@ void spi_init(void);
|
||||||
|
|
||||||
#define FASTSPI_TX_MANY(p,c)\
|
#define FASTSPI_TX_MANY(p,c)\
|
||||||
do {\
|
do {\
|
||||||
for (u8_t spiCnt = 0; spiCnt < (c); spiCnt++) {\
|
u8_t spiCnt;\
|
||||||
|
for (spiCnt = 0; spiCnt < (c); spiCnt++) {\
|
||||||
FASTSPI_TX(((u8_t*)(p))[spiCnt]);\
|
FASTSPI_TX(((u8_t*)(p))[spiCnt]);\
|
||||||
}\
|
}\
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
Loading…
Reference in a new issue