Dave, thanks for the thread link on the SD card issue.
I have to say, .netmf is looking better and better these days. This is not an issue to talk to all these things at the same time with .netmf.
If i want to clear the screen for example, there are quite a few writes involved. I can see it now that when its in this loop i will get a request to access the SD card or IRQ for the touch screen. I dont want to Lock the OS before and after this loop because i have another thread running that needs to service a codec chip every 10ms and grab 480 bytes from it and sent that data out the Ethernet.
Code: Select all
void LCD_CLS(WORD color)
{
DWORD x;
GotoXY(0,0);
WriteLCDCommand(0x22);
// Pull I/O Pin High For Data
LCD_DATA();
//Switch SPI to 16 bit mode;
sim_qspi.qmr &=~ 0x3c00;
for(x=0;x<76800;x++)
{
QSPISend(color);
}
}