mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-12-27 22:32:35 +00:00
Added electrical test option to my temporary command line.
Also experimented with skipping the SPI -- I left my test code in there, commented out, in case I want to do some more speed testing.
This commit is contained in:
parent
7099218bf1
commit
1c07518ab0
@ -59,6 +59,10 @@ void ExternalMem_SetData(uint32_t data)
|
||||
{
|
||||
Ports_SetDataDDR(0xFFFFFFFFUL);
|
||||
Ports_SetDataOut(data);
|
||||
/*DDRE = 0xFF;
|
||||
DDRF = 0xFF;
|
||||
PORTE = (data & 0xFF);
|
||||
PORTF = ((data >> 8) & 0xFF);*/
|
||||
}
|
||||
|
||||
void ExternalMem_SetAddressAndData(uint32_t address, uint32_t data)
|
||||
@ -70,11 +74,14 @@ void ExternalMem_SetAddressAndData(uint32_t address, uint32_t data)
|
||||
void ExternalMem_SetDataAsInput(void)
|
||||
{
|
||||
Ports_SetDataDDR(0);
|
||||
//DDRE = 0;
|
||||
//DDRF = 0;
|
||||
}
|
||||
|
||||
uint32_t ExternalMem_ReadData(void)
|
||||
{
|
||||
return Ports_ReadData();
|
||||
//return (uint32_t)PINE | (((uint32_t)PINF) << 8);
|
||||
}
|
||||
|
||||
void ExternalMem_AssertCS(void)
|
||||
|
@ -127,6 +127,15 @@ void USBSerial_Check(void)
|
||||
//ExternalMem_WriteByteToChips(0, 0x12345678UL, ALL_CHIPS);
|
||||
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "Wrote\r\n");
|
||||
}
|
||||
else if (rb == 't')
|
||||
{
|
||||
int result = SIMMElectricalTest_Run();
|
||||
|
||||
char tmp[20];
|
||||
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "SIMM electrical test complete: ");
|
||||
sprintf(tmp, "%d errors\r\n", result);
|
||||
CDC_Device_SendString(&VirtualSerial_CDC_Interface, tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user