Maybe a minor bug in xmega header files

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I mean the files like iox128a1.h

The symbol GPIO can't be used because GPIO_t is not defined.

It could be that nobody in their right mind would use that symbol, but I tried to use it. :)

It is also an official symbol in the Xmega A manual.

The following code is from iox128a1.h

/*
==========================================================================
IO Module Instances. Mapped to memory.
==========================================================================
*/

#define GPIO    (*(GPIO_t *) 0x0000)  /* General Purpose IO Registers */
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmmm--didn't we have another one very similar not too long ago?

Quote:

It could be that nobody in their right mind would use that symbol, but I tried to use it. Smile

:) I also am trying to think of an indirect use for a low-numbered I/O register--it would seem to defeat the purpose of SBI and cousins.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.