Skip to content

Commit 52d2d49

Browse files
committed
Correct TYPO for SPI pinmap_merge on RF Expansion port
1 parent 04b488d commit 52d2d49

File tree

1 file changed

+3
-3
lines changed
  • libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F

1 file changed

+3
-3
lines changed

libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/spi_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const PinMap PinMap_SPI_MOSI[] = {
4343
{PTB22, SPI_2, 2},
4444
{PTC6 , SPI_0, 2},
4545
{PTD2 , SPI_0, 2},
46-
{PTD6 , SPI_0, 7},
46+
{PTD6 , SPI_1, 7},
4747
{NC , NC , 0}
4848
};
4949

@@ -96,7 +96,7 @@ void spi_init(spi_t *obj, PinName mosi, PinName miso, PinName sclk, PinName ssel
9696

9797
obj->instance = pinmap_merge(spi_data, spi_cntl);
9898
if ((int)obj->instance == NC) {
99-
error("SPI pinout mapping failed");
99+
error("SPI pinout mapping failed\n");
100100
}
101101

102102
// enable power and clocking
@@ -135,7 +135,7 @@ void spi_format(spi_t *obj, int bits, int mode, int slave) {
135135
config.direction = kDspiMsbFirst;
136136
dspi_status_t result = dspi_hal_configure_data_format(obj->instance, kDspiCtar0, &config);
137137
if (result != kStatus_DSPI_Success) {
138-
error("Failed to configure SPI data format");
138+
error("Failed to configure SPI data format\n");
139139
}
140140

141141
if (slave) {

0 commit comments

Comments
 (0)