added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
Diff: targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c
- Revision:
- 22:9c52de9bc1d7
- Parent:
- 0:9b334a45a8ff
- Child:
- 50:a417edff4437
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c Thu Nov 12 13:30:10 2015 +0000 +++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c Tue Nov 17 10:15:10 2015 +0000 @@ -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 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) { @@ -359,7 +359,6 @@ /* Wait for transmission of last byte */ while (!(obj->spi.spi->STATUS & USART_STATUS_TXC)) { - sleep(); // TODO_LP this might break other code, write should be separate from read? } return spi_read(obj);