The keyword volatilemust be reported to the compiler in order to reload characters from memory for each access.
If you know that the array will not be modified during the conversion, you can use a throw to disable the warning:
int value = atoi((const char*)TOS_Mins_Char);
, , atoi(), , . , . , :
char buf[sizeof TOS_Mins_Char];
CLI;
memcpy(buf, TOS_Mins_Char, sizeof TOS_Mins_Char);
STI;
int value = atoi(buf);
/: , , , , .
:
int value, last = atoi((const char*)TOS_Mins_Char);
while ((value = atoi((const char*)TOS_Mins_Char)) != last) {
last = value;
}
ISR , . , ISR, , , .