We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b145e4 + afdeba9 commit 83b4b6dCopy full SHA for 83b4b6d
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D50M/spi_api.c
@@ -165,6 +165,7 @@ int spi_slave_receive(spi_t *obj) {
165
}
166
167
int spi_slave_read(spi_t *obj) {
168
+ obj->spi->SR |= SPI_SR_RFDF_MASK;
169
return obj->spi->POPR;
170
171
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/spi_api.c
@@ -133,6 +133,7 @@ int spi_slave_receive(spi_t *obj) {
133
134
135
136
+ dspi_hal_clear_status_flag(obj->instance, kDspiRxFifoDrainRequest);
137
return dspi_hal_read_data(obj->instance);
138
139
0 commit comments