diff options
| author | Keith Packard <keithp@keithp.com> | 2014-11-06 16:04:14 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-11-06 16:04:14 -0800 | 
| commit | 58db263cc835be0abb972654c2d7369718c88b37 (patch) | |
| tree | c55014a2b9c236d9ee2b5f765faa3d205c319ac9 /src/lpc/ao_spi_lpc.c | |
| parent | d3dd45b060c996153ff8195bd371e9e1f3b15efb (diff) | |
altos/lpc: Declare SPI send parameters as const
This matches STM
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_spi_lpc.c')
| -rw-r--r-- | src/lpc/ao_spi_lpc.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lpc/ao_spi_lpc.c b/src/lpc/ao_spi_lpc.c index e72b8286..bc8f9c69 100644 --- a/src/lpc/ao_spi_lpc.c +++ b/src/lpc/ao_spi_lpc.c @@ -43,9 +43,9 @@ static struct lpc_ssp * const ao_lpc_ssp[LPC_NUM_SPI] = { &lpc_ssp0, &lpc_ssp1 }  	} while (0)  void -ao_spi_send(void *block, uint16_t len, uint8_t id) +ao_spi_send(const void *block, uint16_t len, uint8_t id)  { -	uint8_t	*b = block; +	const uint8_t	*b = block;  	struct lpc_ssp *lpc_ssp = ao_lpc_ssp[id];  	spi_loop(len, *b++, (void)); @@ -69,9 +69,9 @@ ao_spi_recv(void *block, uint16_t len, uint8_t id)  }  void -ao_spi_duplex(void *out, void *in, uint16_t len, uint8_t id) +ao_spi_duplex(const void *out, void *in, uint16_t len, uint8_t id)  { -	uint8_t	*o = out; +	const uint8_t	*o = out;  	uint8_t	*i = in;  	struct lpc_ssp *lpc_ssp = ao_lpc_ssp[id];  | 
