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 mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to