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
↧