avr-libc-corelib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Avr-libc-corelib] Error handling


From: Frédéric Nadeau
Subject: Re: [Avr-libc-corelib] Error handling
Date: Mon, 21 Sep 2009 19:41:49 -0400

On Mon, Sep 21, 2009 at 6:06 PM, Weddington, Eric
<address@hidden> wrote:
>

> This is fairly broad, which may or may not apply to actual drivers. Can you 
> provide a real-world examples?
>

Example spi_write.... spi is not enabled
spi_write_non_blocking..... spi transfer already in progress
usart_setBaudrate(target_baudrate,pourcentageError).... target baud
rate not attainable with specified pourcentage error)
and so on..

I would rather use errno than an new errno_corelib. With RTOS, one has
to save errono for eatch context, thus with errno_corelib, one more
integer(four bytes) on the stack.

-- 
Frédéric Nadeau ing. jr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]