Hi Dean,
thanks for your suggestion, and for getting here to the mailing list
with these. I hope others might also state their opinions about it,
as I think this issue occasionally came up as a request in some
discussions.
My macro allows for both atomic (interrupts disabled) and non-atomic
Ron wrote:
Hi Folks. I would have thought that with -Os the code below should work.
static volatile char* Ptr;
.
.
static Send(char* p)
{
if (p)
{
while (Ptr != NULL) {;}
Ptr = p;
UDR1 = *Ptr++;
}
}
.
.
SIGNAL(SIG_UART1_TRANS)
{
if (*Ptr == '\0')
Ned Konz wrote:
Ron wrote:
Hi Folks. I would have thought that with -Os the code below should work.
static volatile char* Ptr;
.
.
static Send(char* p)
{
if (p)
{
while (Ptr != NULL) {;}
Ptr = p;
UDR1 = *Ptr++;
}
}
.
.
SIGNAL(SIG_UART1_TRANS)
{
if