Remove unused SPI initializer flag from AVR. Comment out in the msp-430 template.
This commit is contained in:
parent
79d65d2adc
commit
2b7ecefce7
@ -26,7 +26,6 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: spi.c,v 1.1 2007/01/25 18:22:55 bg- Exp $
|
||||
*/
|
||||
|
||||
#include <avr/io.h>
|
||||
@ -48,11 +47,6 @@ unsigned char spi_busy = 0;
|
||||
void
|
||||
spi_init(void)
|
||||
{
|
||||
static unsigned char spi_inited = 0;
|
||||
|
||||
if (spi_inited)
|
||||
return;
|
||||
|
||||
/* Initalize ports for communication with SPI units. */
|
||||
/* CSN=SS and must be output when master! */
|
||||
DDRB |= BV(MOSI) | BV(SCK) | BV(CSN);
|
||||
|
@ -26,7 +26,6 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: spi.c,v 1.1 2006/06/17 22:41:21 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
#include "contiki-conf.h"
|
||||
@ -46,11 +45,12 @@ unsigned char spi_busy = 0;
|
||||
void
|
||||
spi_init(void)
|
||||
{
|
||||
/*
|
||||
static unsigned char spi_inited = 0;
|
||||
|
||||
if (spi_inited)
|
||||
return;
|
||||
|
||||
*/
|
||||
/* Initalize ports for communication with SPI units. */
|
||||
|
||||
U0CTL = CHAR + SYNC + MM + SWRST; /* SW reset,8-bit transfer, SPI master */
|
||||
|
Loading…
Reference in New Issue
Block a user