Changeset 680
- Timestamp:
- Nov 20, 2020, 12:31:55 AM (4 years ago)
- Location:
- trunk/boot/tsar_mips32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/boot/tsar_mips32/boot_spi_driver.c
r619 r680 29 29 static void _sdc_enable() 30 30 { 31 spi_ss_assert( sdcard.spi, sdcard.slave_id);31 spi_ss_assert( __FUNCTION__,sdcard.spi, sdcard.slave_id); 32 32 } 33 33 … … 37 37 static void _sdc_disable() 38 38 { 39 spi_ss_deassert( sdcard.spi, sdcard.slave_id);39 spi_ss_deassert( __FUNCTION__,sdcard.spi, sdcard.slave_id); 40 40 } 41 41 -
trunk/boot/tsar_mips32/boot_spi_utils.c
r619 r680 195 195 196 196 /////////////////////////////////////////////////////////////////////////////// 197 // spi_ss_assert( )197 // spi_ss_assert( __FUNCTION__,) 198 198 // This function enables a SPI slave 199 199 // - spi : initialized pointer to the SPI controller 200 200 // - index : slave index 201 201 /////////////////////////////////////////////////////////////////////////////// 202 void spi_ss_assert( struct boot_spi_dev * spi, int index)202 void spi_ss_assert( __FUNCTION__,struct boot_spi_dev * spi, int index) 203 203 { 204 204 unsigned int spi_ss = ioread32(&spi->ss); … … 208 208 209 209 /////////////////////////////////////////////////////////////////////////////// 210 // spi_ss_deassert( )210 // spi_ss_deassert( __FUNCTION__,) 211 211 // This function disables a SPI slave 212 212 // - spi : initialized pointer to the SPI controller 213 213 // - index : slave index 214 214 /////////////////////////////////////////////////////////////////////////////// 215 void spi_ss_deassert( struct boot_spi_dev * spi, int index)215 void spi_ss_deassert( __FUNCTION__,struct boot_spi_dev * spi, int index) 216 216 { 217 217 unsigned int spi_ss = ioread32(&spi->ss);
Note: See TracChangeset
for help on using the changeset viewer.