Update spi_api.c
Modified line 145:  previously the fill character has been hard coded to 0x00. However in Mbed OS core SPI_FILL_CHAR is defined in the core to be 0xFF by default (one can change that through mbed_app.json for example). This mod allows us to use the same fill character that is defined for Mbed OS.

Also modified spi_master_block_write(): previously it called am_hal_iom_blocking_transfer on line 182, but that prevented succesful SD card writing operations. Now i changed that part to am_hal_iom_spi_blocking_fullduplex and SD functionality seems to be working.
ls
1 parent c2bddbb commit d56f942ae7616e08b8cae7ce411ef75279b60b5f
@Peter B Peter B authored on 26 Oct 2020
GitHub committed on 26 Oct 2020
Showing 1 changed file
View
targets/TARGET_Ambiq_Micro/TARGET_Apollo3/device/spi_api.c