Closed avrs-admin closed 2 years ago
Joerg Wunsch
This appears to be a duplicate for bug #28901 which has been fixed in version 1.7.0.
Please confirm that this version actually fixes also your problem.
Ragnar Ranøyen Homb
With the new iox128a1.h (from 1.7.0) i get the error: ... 'CPU' undeclared ... when trying to access CPU.CPP
Joerg Wunsch
This appears to be intentional:
r2116 | aboyapati | 2010-04-06 05:57:30 +0200 (Tue, 06 Apr 2010) | 20 lines
2010-03-31 Anitha Boyapati anitha.boyapati@atmel.com
Fix bug #28901.
Maybe Anitha can comment on why they are not supposed to be present.
Anitha Boyapati
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.
+#define GPIO (0x0000) / General Purpose IO Registers /
+#define CPU (0x0030) / CPU Registers /
Eric Weddington
Hi Anitha,
Actually, IIRC, I asked you to just remove those definitions from the header file. Also, IIRC, the registers that would normally be in the CPU_t and GPIO_t structures are defined as "global" registers, meaning that they should not be buried in a structure of registers anywhere.
Also, if this bug is marked as a Duplicate, then go ahead and set the bug to Closed.
Eric
Thu 12 Aug 2010 02:34:58 PM CEST
The headerfile iox128a1.h is missing typedef for CPU_t. Compile error: 'CPU_t' undeclared when trying to write to CPU.CCP
This issue was migrated from https://savannah.nongnu.org/bugs/?30757