ankitsohaliya / mansos

Automatically exported from code.google.com/p/mansos
0 stars 0 forks source link

TelosB UART/SPI[0] sharing among CC2420 and other devices #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Init CC2420 radio 
2. Init UART[0] for communication to other devices (eg, RFID reader or GPS)
3. Try radioSend() - it fails, as SPI/UART bus is configured in UART mode

Workaround: User must explicitly call USARTInitSPI(0)

Probable better solutions: 
* implement radioReInit() function
* allow to call radioInit() multiple times
* automatically arbitrate data bus when calling radioSend() and 
UsartEnableRX/TX()

Original issue reported on code.google.com by Girts.St...@gmail.com on 28 May 2012 at 11:28

GoogleCodeExporter commented 9 years ago
Added (temporal) workaround: allow to call cc2420_init() multiple times

Original comment by Girts.St...@gmail.com on 1 Jun 2012 at 7:41