[Top][All Lists]

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

[avr-libc-dev] [bug #30757] CPU_t not implemented in iox128a1.h

From: Anitha Boyapati
Subject: [avr-libc-dev] [bug #30757] CPU_t not implemented in iox128a1.h
Date: Wed, 22 Sep 2010 12:50:47 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100914 Firefox/3.5.13

Follow-up Comment #4, bug #30757 (project avr-libc):

Firstly, sorry for not responding earlier. I think I missed this bug.

The bug28901 talks about missing CPU_t and GPIO_t definitions only. I think
definitions for CPU and GPIO should not have been removed. Upon that I created
the patch in the first place!

My fix for this would look something like below (taken only for iox128a1.h).
Please review if this looks fine. I shall extend it to rest of xmega header

Index: iox128a1.h
--- iox128a1.h  (revision 2187)
+++ iox128a1.h  (working copy)
@@ -2552,12 +2552,13 @@
 IO Module Instances. Mapped to memory.
+#define GPIO      (0x0000)  /* General Purpose IO Registers */
 #define VPORT0    (*(VPORT_t *) 0x0010)  /* Virtual Port 0 */
 #define VPORT1    (*(VPORT_t *) 0x0014)  /* Virtual Port 1 */
 #define VPORT2    (*(VPORT_t *) 0x0018)  /* Virtual Port 2 */
 #define VPORT3    (*(VPORT_t *) 0x001C)  /* Virtual Port 3 */
 #define OCD    (*(OCD_t *) 0x002E)  /* On-Chip Debug System */
+#define CPU       (0x0030)  /* CPU Registers */
 #define CLK    (*(CLK_t *) 0x0040)  /* Clock System */
 #define SLEEP    (*(SLEEP_t *) 0x0048)  /* Sleep Controller */
 #define OSC    (*(OSC_t *) 0x0050)  /* Oscillator Control */


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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