[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] patch for iom162.h - signal name consistency
From: |
Artur Lipowski |
Subject: |
[avr-libc-dev] patch for iom162.h - signal name consistency |
Date: |
Tue, 17 Feb 2004 10:25:41 +0100 |
User-agent: |
Mozilla Thunderbird 0.5+ (Windows/20040215) |
Hi,
This is (iom162_h_p1.patch) my proposal to make m162 USART signal names
consistent with rest of the world.
The second patch (iom162_h_p1.patch) prohibits compilation of code with
old signal names.
Regards,
--
Artur Lipowski
*** iom162.h.new 2004-02-17 10:15:38.000000000 +0100
--- iom162.h 2004-02-17 10:15:54.000000000 +0100
***************
*** 189,194 ****
--- 189,204 ----
#define _VECTORS_SIZE 112 /* = (num vec+1) * 4 */
+ /* To disallow compilation of obsoleted signal names
+ * use character not allowed in C indentifier */
+ #define _UART_SIGNAME_ERR +
+ #define SIG_USART0_RECV _UART_SIGNAME_ERR
+ #define SIG_USART1_RECV _UART_SIGNAME_ERR
+ #define SIG_USART0_DATA _UART_SIGNAME_ERR
+ #define SIG_USART1_DATA _UART_SIGNAME_ERR
+ #define SIG_USART0_TRANS _UART_SIGNAME_ERR
+ #define SIG_USART1_TRANS _UART_SIGNAME_ERR
+
*** iom162.h.org 2004-02-17 09:44:27.000000000 +0100
--- iom162.h 2004-02-17 10:14:04.000000000 +0100
***************
*** 177,188 ****
#define SIG_OUTPUT_COMPARE0 _VECTOR(16) /* Timer/Counter0 Compare Match */
#define SIG_OVERFLOW0 _VECTOR(17) /* Timer/Counter0 Overflow */
#define SIG_SPI _VECTOR(18) /* Serial Transfer Complete
*/
! #define SIG_USART0_RECV _VECTOR(19) /* USART0,Rx Complete */
! #define SIG_USART1_RECV _VECTOR(20) /* USART1,Rx Complete */
! #define SIG_USART0_DATA _VECTOR(21) /* USART0 Data Register
Empty */
! #define SIG_USART1_DATA _VECTOR(22) /* USART1 Data Register
Empty */
! #define SIG_USART0_TRANS _VECTOR(23) /* USART0,Tx Complete */
! #define SIG_USART1_TRANS _VECTOR(24) /* USART1,Tx Complete */
#define SIG_EEPROM_READY _VECTOR(25) /* EEPROM Ready */
#define SIG_COMPARATOR _VECTOR(26) /* Analog Comparator */
#define SIG_SPM_READY _VECTOR(27) /* Store Program Memory Ready */
--- 177,188 ----
#define SIG_OUTPUT_COMPARE0 _VECTOR(16) /* Timer/Counter0 Compare Match */
#define SIG_OVERFLOW0 _VECTOR(17) /* Timer/Counter0 Overflow */
#define SIG_SPI _VECTOR(18) /* Serial Transfer Complete
*/
! #define SIG_UART0_RECV _VECTOR(19) /* USART0,Rx Complete */
! #define SIG_UART1_RECV _VECTOR(20) /* USART1,Rx Complete */
! #define SIG_UART0_DATA _VECTOR(21) /* USART0 Data Register
Empty */
! #define SIG_UART1_DATA _VECTOR(22) /* USART1 Data Register
Empty */
! #define SIG_UART0_TRANS _VECTOR(23) /* USART0,Tx Complete */
! #define SIG_UART1_TRANS _VECTOR(24) /* USART1,Tx Complete */
#define SIG_EEPROM_READY _VECTOR(25) /* EEPROM Ready */
#define SIG_COMPARATOR _VECTOR(26) /* Analog Comparator */
#define SIG_SPM_READY _VECTOR(27) /* Store Program Memory Ready */
- [avr-libc-dev] patch for iom162.h - signal name consistency,
Artur Lipowski <=
- Re: [avr-libc-dev] patch for iom162.h - signal name consistency, Theodore A. Roth, 2004/02/26
- Re: [avr-libc-dev] SIGNAL / INTERRUPT checking, Joerg Wunsch, 2004/02/27
- Re: [avr-libc-dev] SIGNAL / INTERRUPT checking, E. Weddington, 2004/02/27
- Re: [avr-libc-dev] SIGNAL / INTERRUPT checking, E. Weddington, 2004/02/27
- Re: [avr-libc-dev] SIGNAL / INTERRUPT checking, Colin O'Flynn, 2004/02/27