Skip to content

Commit 7be00b8

Browse files
committed
[MAX326xx] Synchronizing SPI drivers.
1 parent e628254 commit 7be00b8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/spi_api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ void spi_init(spi_t *obj, PinName mosi, PinName miso, PinName sclk, PinName ssel
8888
obj->spi->gen_ctrl = (MXC_F_SPI_GEN_CTRL_SPI_MSTR_EN |
8989
MXC_F_SPI_GEN_CTRL_TX_FIFO_EN |
9090
MXC_F_SPI_GEN_CTRL_RX_FIFO_EN );
91-
92-
// Give instance the default settings
93-
spi_format(obj, DEFAULT_CHAR, DEFAULT_MODE, 0);
94-
spi_frequency(obj, DEFAULT_FREQ);
9591
}
9692

9793
//******************************************************************************

hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void spi_frequency(spi_t *obj, int hz)
141141
}
142142

143143
//******************************************************************************
144-
int spi_master_write(spi_t *obj, int value)
144+
int spi_master_write(spi_t *obj, int value)
145145
{
146146
int bits = spi_bits;
147147
if(spi_bits == 32) {
@@ -180,7 +180,7 @@ int spi_master_write(spi_t *obj, int value)
180180
}
181181

182182
//******************************************************************************
183-
int spi_busy(spi_t *obj)
183+
int spi_busy(spi_t *obj)
184184
{
185185
return !(obj->spi->intfl & MXC_F_SPI_INTFL_TX_READY);
186186
}

0 commit comments

Comments
 (0)