From 2b4feeb350c8237ba484a3c0cecc8a3966888ab9 Mon Sep 17 00:00:00 2001 From: zer0 Date: Fri, 30 Apr 2010 23:49:18 +0200 Subject: [PATCH] remove inline in spi module --- modules/comm/spi/spi.c | 4 ++-- modules/comm/spi/spi_host.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/comm/spi/spi.c b/modules/comm/spi/spi.c index cdb7b12..03a0fab 100644 --- a/modules/comm/spi/spi.c +++ b/modules/comm/spi/spi.c @@ -74,7 +74,7 @@ int8_t spi_register_ss_line(volatile uint8_t *port, uint8_t bitnum) /* * Set data order (default: MSB first) */ -inline void spi_set_data_order(uint8_t order) +void spi_set_data_order(uint8_t order) { if (order == SPI_LSB_FIRST) SPCR |= _BV(DORD); @@ -85,7 +85,7 @@ inline void spi_set_data_order(uint8_t order) /* * Get data order */ -inline uint8_t spi_get_data_order(void) +uint8_t spi_get_data_order(void) { if (SPCR & _BV(DORD)) return SPI_LSB_FIRST; diff --git a/modules/comm/spi/spi_host.c b/modules/comm/spi/spi_host.c index 0782acd..b02cec8 100644 --- a/modules/comm/spi/spi_host.c +++ b/modules/comm/spi/spi_host.c @@ -35,7 +35,7 @@ static volatile uint8_t g_ss_number; static volatile spi_mode_t g_spi_mode; static volatile uint8_t g_slave_selected; -/*static*/ volatile uint8_t g_spi_order; +static volatile uint8_t g_spi_order; static volatile spi_format_t g_spi_format; static volatile spi_mode_t g_spi_mode; static volatile spi_clk_rate_t g_spi_clk_rate; @@ -60,7 +60,7 @@ int8_t spi_register_ss_line(volatile uint8_t *port, uint8_t bitnum) /* * Set data order (default: MSB first) */ -inline void spi_set_data_order(uint8_t order) +void spi_set_data_order(uint8_t order) { g_spi_order = order; } @@ -68,7 +68,7 @@ inline void spi_set_data_order(uint8_t order) /* * Get data order */ -inline uint8_t spi_get_data_order(void) +uint8_t spi_get_data_order(void) { return g_spi_order; } -- 2.39.5