diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
commit | 08a4ed8fe794a2b2b52147bd5535fe0954822e95 (patch) | |
tree | d9ae25dd4922c15a7c2d55ce95b601c6bf02ce75 /src/avr/ao_arch_funcs.h | |
parent | 1a1d4a557a30e2e743936b828b654187ec562ca8 (diff) |
altos: include targe SPI speed in get request
STM needs it to be provided when enabling the SPI device, so just fix
AVR and cc1111 to do the same.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/avr/ao_arch_funcs.h')
-rw-r--r-- | src/avr/ao_arch_funcs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/avr/ao_arch_funcs.h b/src/avr/ao_arch_funcs.h index 1eeca6cc..e400c98b 100644 --- a/src/avr/ao_arch_funcs.h +++ b/src/avr/ao_arch_funcs.h @@ -21,7 +21,7 @@ extern __xdata uint8_t ao_spi_mutex; -#define ao_spi_get_mask(reg,mask,bus) do { \ +#define ao_spi_get_mask(reg,mask,bus,speed) do { \ ao_mutex_get(&ao_spi_mutex); \ (reg) &= ~(mask); \ } while (0) @@ -31,13 +31,13 @@ extern __xdata uint8_t ao_spi_mutex; ao_mutex_put(&ao_spi_mutex); \ } while (0) -#define ao_spi_get_bit(bit) do { \ +#define ao_spi_get_bit(reg,bit,pin,bus,speed) do { \ ao_mutex_get(&ao_spi_mutex); \ - (bit) = 0; \ + (pin) = 0; \ } while (0) -#define ao_spi_put_bit(bit) do { \ - (bit) = 1; \ +#define ao_spi_put_bit(reg,bit,pin,bus) do { \ + (pin) = 1; \ ao_mutex_put(&ao_spi_mutex); \ } while (0) |