Content originally posted in LPCWare by bobi-one on Fri Apr 29 11:24:49 MST 2011
Quote: larryvc
Are you asking if you can just have one receive() routine? If so, pass a value to assign to LPC_SSP->DR. Like this:
void SSP_Receive( uint8_t *buf, uint32_t Length, uint8_t value)
LPC_SSP->DR = value;
Yes this is always an option :) , but I am trying to understand the problem in debt.
After transferring this code which was running fine on the lpcxpresso on the Miniscule board the only working SPI peripheral was the sd card and no touch data (without modifying the code ) and noticed, when touching with finger the MOSI track, touch data was pouring in . Thats why I soldered pull down resistor to it, till I find why the board is making this monkey business.(When lpc link is attached is working fine without the resistor)
And now I realized: never start writing long long code, if you don't know the basics ":D