Line 322... |
Line 322... |
int arg0, int arg1, int arg2, int arg3,
|
int arg0, int arg1, int arg2, int arg3,
|
int arg4, int arg5, int arg6, int arg7)
|
int arg4, int arg5, int arg6, int arg7)
|
{
|
{
|
uint8 *ptr;
|
uint8 *ptr;
|
#if 0
|
#if 0
|
//Check for string "!M#~" to mask print statement
|
//Check for string "!m#~" to mask print statement
|
static char moduleLevel[26];
|
static char moduleLevel[26];
|
if(format[0] == '!' && format[3] == '~' &&
|
if(format[0] == '!' && format[3] == '~')
|
'A' <= format[1] && format[1] <= 'Z')
|
|
{
|
{
|
int module = format[1] - 'A';
|
|
int level = format[2] - '5';
|
int level = format[2] - '5';
|
if(format[2] == '#')
|
if('a' <= format[1] && format[1] <= 'z')
|
{
|
{
|
//Set level with "!M#~#"
|
if(level < moduleLevel[format[1] - 'a'])
|
moduleLevel[module] = (char)(format[4] - '5');
|
|
return;
|
return;
|
}
|
}
|
if(level < moduleLevel[module])
|
else if('A' <= format[1] && format[1] <= 'Z')
|
return;
|
moduleLevel[format[1] - 'A'] = (char)level;
|
format += 4;
|
format += 4;
|
}
|
}
|
#endif
|
#endif
|
OS_SemaphorePend(SemaphoreUart, OS_WAIT_FOREVER);
|
OS_SemaphorePend(SemaphoreUart, OS_WAIT_FOREVER);
|
sprintf(PrintfString, format, arg0, arg1, arg2, arg3,
|
sprintf(PrintfString, format, arg0, arg1, arg2, arg3,
|