This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200中的SDK UART例程中 #ifndef NOTERM 这句语句是干什么的?

比如这个语句

void 

Message(const char *str)
{
#ifndef NOTERM
if(str != NULL)
{
while(*str!='\0')
{
MAP_UARTCharPut(CONSOLE,*str++);
}
}
#endif
}

  • 这个是预编译。如果没有定义 NOTERM那么编译后面的内容。。。

    比如要打印信息,把编译选项里的NOTERM去掉。而你贴的这段,应该就是打印信息的那段。