diff options
| author | Keith Packard <keithp@keithp.com> | 2011-10-11 17:44:40 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-10-11 18:57:32 -0600 | 
| commit | e60c470b426b7be08a33133e7d8c94201d7e96d4 (patch) | |
| tree | 55cf68b76f2c04e52ea6438315ea88be01143517 /src/avr/ao_spi_slave.c | |
| parent | af4470f8025116179ef83726a8287e47c465907b (diff) | |
altos/avr: Pull-up on the SPI slave select pin
This makes the board work even when disconnected from TeleMetrum.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/avr/ao_spi_slave.c')
| -rw-r--r-- | src/avr/ao_spi_slave.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/avr/ao_spi_slave.c b/src/avr/ao_spi_slave.c index 76f574c6..3aa0b97f 100644 --- a/src/avr/ao_spi_slave.c +++ b/src/avr/ao_spi_slave.c @@ -87,7 +87,7 @@ ao_spi_slave_init(void)  		 (1 << 3) |		/* MISO, output */  		 (0 << 2) |		/* MOSI, no pull-up */  		 (0 << 1) |		/* SCK, no pull-up */ -		 (0 << 0));		/* SS, no pull-up */ +		 (1 << 0));		/* SS, pull-up */  #endif  #if SPI_SLAVE_PIN_2_5  	PCMSK0 |= (1 << PCINT2);	/* Enable PCINT2 pin change */ @@ -103,7 +103,7 @@ ao_spi_slave_init(void)  		 (0 << 5) |		/* SCK, no pull-up */  		 (1 << 4) |		/* MISO, output */  		 (0 << 3) |		/* MOSI, no pull-up */ -		 (0 << 2));		/* SS, no pull-up */ +		 (1 << 2));		/* SS, pull-up */  #endif	  	SPCR = (0 << SPIE) |		/* Disable SPI interrupts */  | 
