[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #2651] signal and UART reisters name consistency
From: |
Theodore A. Roth |
Subject: |
[avr-libc-dev] [patch #2651] signal and UART reisters name consistency |
Date: |
Wed, 07 Apr 2004 12:58:23 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 |
This mail is an automated notification from the patch tracker
of the project: AVR C Runtime Library.
/**************************************************************************/
[patch #2651] Latest Modifications:
Changes by:
Theodore A. Roth <address@hidden>
'Date:
Wed 04/07/04 at 16:58 (US/Pacific)
What | Removed | Added
---------------------------------------------------------------------------
Priority | 5 - Normal | 3 - Low
Assigned to | None | troth
------------------ Additional Follow-up Comments ----------------------------
Actually, more than the m169 use USART. If the data sheet says USART, I've been
told to use USART.
The current m169 header uses SIG_UART0_*. That should probably be changed to
SIG_USART_*.
The m162 SIG_USART[01]_* probably shouldn't be changed.
Personally, I'd rather see all the signal names for all devices reduced down to
common and consistent names. We are already divergent from the datasheets with
respect to interrupt vector names and simplification would reduce the chance of
using the wrong SIG_* name (which gcc can't even catch and will generate the
wrong code).
I'd like to hear some more comments on this patch before we take action.
/**************************************************************************/
[patch #2651] Full Item Snapshot:
URL: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=2651>
Project: AVR C Runtime Library
Submitted by: 0
On: Fri 02/20/04 at 12:27
Category: None
Priority: 3 - Low
Resolution: None
Assigned to: troth
Originator Email: address@hidden
Status: Open
Summary: signal and UART reisters name consistency
Original Submission: Beacuse m162 has only one UART then it is a little messy
to use 0 in macro names.
In the avr-libc (except of m169.h) there are used UART prefixes not USART.
Maybe it is also worth to prohibit users against using old names of macros,
adding something like:
#define _UART_SIGNAME_ERR +
#define SIG_UART0_RECV _UART_SIGNAME_ERR
#define SIG_UART0_DATA _UART_SIGNAME_ERR
#define SIG_UART0_TRANS _UART_SIGNAME_ERR
Follow-up Comments
------------------
-------------------------------------------------------
Date: Wed 04/07/04 at 16:58 By: troth
Actually, more than the m169 use USART. If the data sheet says USART, I've been
told to use USART.
The current m169 header uses SIG_UART0_*. That should probably be changed to
SIG_USART_*.
The m162 SIG_USART[01]_* probably shouldn't be changed.
Personally, I'd rather see all the signal names for all devices reduced down to
common and consistent names. We are already divergent from the datasheets with
respect to interrupt vector names and simplification would reduce the chance of
using the wrong SIG_* name (which gcc can't even catch and will generate the
wrong code).
I'd like to hear some more comments on this patch before we take action.
File Attachments
-------------------
-------------------------------------------------------
Date: Fri 02/20/04 at 12:27 Name: iom162_169_h.patch Size: 3KB By: None
patch for iom162.h and iom169.h
http://savannah.nongnu.org/patch/download.php?item_id=2651&item_file_id=2755
For detailed info, follow this link:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=2651>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [patch #2651] signal and UART reisters name consistency,
Theodore A. Roth <=