Other Parts Discussed in Thread: C2000WARE
I am asking about the macro definition in F2837xD_Gpio_defines.h, which is the library code from TI.
Why are the register offset addresses all divided by 2 as below?
#define GPY_CTRL_OFFSET (0x40/2)
#define GPY_DATA_OFFSET (0x8/2)
#define GPYQSEL (0x2/2)
#define GPYMUX (0x6/2)
#define GPYDIR (0xA/2)
#define GPYPUD (0xC/2)
#define GPYINV (0x10/2)
#define GPYODR (0x12/2)
#define GPYGMUX (0x20/2)
#define GPYCSEL (0x28/2)
#define GPYLOCK (0x3C/2)
#define GPYCR (0x3E/2)
I thought that the offset addresses in datasheet were not the offset for addresses, should be the size of the registers. But I have not found any related information.
Thank you in advance if any answers.


