Other Parts Discussed in Thread: CC2430
I want to use the SPI interface in CC2430 to communicate with a memory device (AT25DF161).
While searching for information related, I found little to almost none information regarding this in the sense that is not present in the API.
My question is: Can i use HalUARTWrite function to interface to the SPI?
II found some references to the function
HalUARTWrite(SPI_MGR_DEFAULT_PORT,msg_ptr,len); //SPIMgr.c
but no information at all regarding the "port" SPI_MGR_DEFAULT_PORT or how it was configured.
I guess that the alternative is to use direct memory access, something like:
SSN=LOW;
U1BUF = byte;
while((U1CSR & U_ACTIVE)); /* Wait
until byte has been transmitted. */
as described in http://e2e.ti.com/support/low_power_rf/f/155/t/15981.aspx?PageIndex=3
That complicates things a bit and of course I would like to know if something similar to the first option is available at all?