Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

DS5: How do print asm variable out in firmware?

$
0
0
Now I'm trying to understand the CM3 firmware code. But especially I found some of the code is made by asm code as the below, unsigned char UartPutc(unsigned char my_ch) { while ((CMSDK_UART2->STATE & 1)); // Wait if Transmit Holding register is full CMSDK_UART2->DATA = my_ch; // write to transmit holding register return (my_ch); } // Uart string output void UartPuts(unsigned char * mytext) { unsigned char CurrChar; do { Cur

Viewing all articles
Browse latest Browse all 3049

Trending Articles