Skip to content

Commit 5aaf3b7

Browse files
committed
K64F, LPC SPI driver: Fix style
1 parent 6d0a901 commit 5aaf3b7

File tree

2 files changed

+4
-4
lines changed
  • targets
    • TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F
    • TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC

2 files changed

+4
-4
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/spi_api.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ SPIName spi_get_peripheral_name(PinName mosi, PinName miso, PinName sclk)
4747
spi_per = (SPIName)pinmap_merge(spi_mosi, spi_sclk);
4848
} else if (mosi == NC) {
4949
spi_per = (SPIName)pinmap_merge(spi_miso, spi_sclk);
50-
}
51-
else {
50+
} else {
5251
SPIName spi_data = (SPIName)pinmap_merge(spi_mosi, spi_miso);
5352
spi_per = (SPIName)pinmap_merge(spi_data, spi_sclk);
5453
}

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/spi_api.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void spi_frequency(spi_t *obj, int hz)
173173
SPI_MasterSetBaud(spi_address[obj->instance], (uint32_t)hz, 12000000);
174174
}
175175

176-
static inline int spi_readable(spi_t * obj)
176+
static inline int spi_readable(spi_t *obj)
177177
{
178178
return (SPI_GetStatusFlags(spi_address[obj->instance]) & kSPI_RxNotEmptyFlag);
179179
}
@@ -190,7 +190,8 @@ int spi_master_write(spi_t *obj, int value)
190190
}
191191

192192
int spi_master_block_write(spi_t *obj, const char *tx_buffer, int tx_length,
193-
char *rx_buffer, int rx_length, char write_fill) {
193+
char *rx_buffer, int rx_length, char write_fill)
194+
{
194195
int total = (tx_length > rx_length) ? tx_length : rx_length;
195196

196197
for (int i = 0; i < total; i++) {

0 commit comments

Comments
 (0)