Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216375

Forum Post: RE: Help with a small fragment of SLAA281b SPI sample code

$
0
0

I have changed the following lines of code (hal_SPI.h):

  •  #define halSPITXDONE  !(UCA0STAT&UCBUSY)      /* Wait for TX to finish */
  •  #define halSPITXDONE  !(UCA1STAT&UCBUSY)      /* Wait for TX to finish */
  •  #define halSPITXDONE  !(UCB0STAT&UCBUSY)      /* Wait for TX to finish */

and codestarted to operatewithout using bitbanging technique. Before, the program got stuck in the loop while(!halSPITXDONE);


Viewing all articles
Browse latest Browse all 216375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>