[an error occurred while processing this directive]
|
void cmd_identify(unsigned long base_addr, unsigned long *manuf_code, unsigned long *device_code)
{
*(volatile unsigned long *)(base_addr + 0x15554) = 0xaa00aa; // Autoselect sequence
*(volatile unsigned long *)(base_addr + 0x0aaa8) = 0x550055; //
*(volatile unsigned long *)(base_addr + 0x15554) = 0x900090; //
*manuf_code = *(volatile unsigned long *)(base_addr);
*device_code = *(volatile unsigned long *)(base_addr + 0x04);
}
E-mail: info@telesys.ru