[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:1.9.1.13) 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
files.
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:
<http://savannah.nongnu.org/bugs/?30757>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #30757] CPU_t not implemented in iox128a1.h,
Anitha Boyapati <=