SmoothDriving/FatFs/mmc_avr.c
static
void power_on (void)
{
	PORTB |= SS | MOSI;	
	DDRB  |= SS | SCK | MOSI;/* Configure SCK/MOSI/CS as output */

	SPCR = 0x52;			/* Enable SPI function in mode 0 */
	SPSR = 0x01;			/* SPI 2x mode */
}
/*-----------------------------------------------------------------------*/
/* Power Control  (Platform dependent)                                   */
/*-----------------------------------------------------------------------*/
/* When the target system does not support socket power control, there   */
/* is nothing to do in these functions and chk_power always returns 1.   */
Power Control  (Platform dependent)
When the target system does not support socket power control, there
is nothing to do in these functions and chk_power always returns 1.
Power Control ( Platform dependent ) When the target system does not support socket power control there is nothing to do in these functions and chk_power always returns 1 .
static
void power_on (void)
{
	PORTB |= SS | MOSI;	
	DDRB  |= SS | SCK | MOSI;
	SPCR = 0x52;			
	SPSR = 0x01;			
}
static void power_on ( void ) { PORTB |= SS | MOSI ; DDRB |= SS | SCK | MOSI ; SPCR = 0x52 ; SPSR = 0x01 ; }
Power Control  (Platform dependent)
When the target system does not support socket power control, there
is nothing to do in these functions and chk_power always returns 1.
Power Control ( Platform dependent ) When the target system does not support socket power control there is nothing to do in these functions and chk_power always returns 1 .
/* Configure SCK/MOSI/CS as output */ /* Enable SPI function in mode 0 */ /* SPI 2x mode */