[an error occurred while processing this directive]
|
unsigned char DF_status( void )
{
PORTB &= ~DF_CHIP_SELECT; // enable DataFlash
write_SPI( STATUS_REGISTER );
write_SPI(0xFF);
PORTB |= DF_CHIP_SELECT; // disable DataFlash
return SPDR;
}
unsigned char DF_Ready( void )
{
return DF_status() & 0x80;
}
E-mail: info@telesys.ru