[EFM32] Declare spi_api.c helper functions as static. Fixes linker issue with gcc.

pull/1428/head
Aksel Skauge Mellbye 2015-11-16 13:26:12 +01:00
parent 33558d3a03
commit b9f8f2bc91
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
static uint16_t fill_word = SPI_FILL_WORD;
#define SPI_LEAST_ACTIVE_SLEEPMODE EM1
inline CMU_Clock_TypeDef spi_get_clock_tree(spi_t *obj)
static inline CMU_Clock_TypeDef spi_get_clock_tree(spi_t *obj)
{
switch ((int)obj->spi.spi) {
#ifdef USART0
@ -71,7 +71,7 @@ inline CMU_Clock_TypeDef spi_get_clock_tree(spi_t *obj)
}
}
inline uint8_t spi_get_index(spi_t *obj)
static inline uint8_t spi_get_index(spi_t *obj)
{
uint8_t index = 0;
switch ((int)obj->spi.spi) {