I am using controlSUITE, and found this in gpioExample:
((GPIO_Obj *)myGpio)->GPASET = 0xAAAAAAAA;
obviously myGpio is *GPIO_Obj, the conversion is not needed, and I found this:
typedef struct GPIO_Obj *GPIO_Handle;
that means:
typedef struct struct {} *GPIO_Handle;
it should be:
typedef GPIO_Obj *GPIO_Handle;
such mistake is also in :
$ grep -RG "typedef struct .*Handle" *
f2802x/v210/f2802x_common/include/adc.h:typedef struct ADC_Obj *ADC_Handle;
f2802x/v210/f2802x_common/include/cap.h:typedef struct CAP_Obj *CAP_Handle;
f2802x/v210/f2802x_common/include/clk.h:typedef struct CLK_Obj *CLK_Handle;
f2802x/v210/f2802x_common/include/comp.h:typedef struct COMP_Obj *COMP_Handle;
f2802x/v210/f2802x_common/include/cpu.h:typedef struct CPU_Obj *CPU_Handle;
f2802x/v210/f2802x_common/include/flash.h:typedef struct FLASH_Obj *FLASH_Handle;
f2802x/v210/f2802x_common/include/gpio.h:typedef struct GPIO_Obj *GPIO_Handle;
f2802x/v210/f2802x_common/include/i2c.h:typedef struct I2C_Obj *I2C_Handle;
f2802x/v210/f2802x_common/include/osc.h:typedef struct OSC_Obj *OSC_Handle;
f2802x/v210/f2802x_common/include/pie.h:typedef struct PIE_Obj *PIE_Handle;
f2802x/v210/f2802x_common/include/pll.h:typedef struct PLL_Obj *PLL_Handle;
f2802x/v210/f2802x_common/include/pwm.h:typedef struct PWM_Obj *PWM_Handle;
f2802x/v210/f2802x_common/include/pwr.h:typedef struct PWR_Obj *PWR_Handle;
f2802x/v210/f2802x_common/include/sci.h:typedef struct SCI_Obj *SCI_Handle;
f2802x/v210/f2802x_common/include/spi.h:typedef struct SPI_Obj *SPI_Handle;
f2802x/v210/f2802x_common/include/timer.h:typedef struct TIMER_Obj *TIMER_Handle;
f2802x/v210/f2802x_common/include/wdog.h:typedef struct WDOG_Obj *WDOG_Handle;
f2802x0/v110/......
Hope to fix :)
