Hello,
We have just migrated from CCS3.3 to CCS6 and have imported all of our code - including the CSL for the 5501. When building we are given the following warning.
warning #1107-D: conversion from integer to small pointer
The line with the objectionable line is given below
variable = *(unsigned short *)(GPIO_buffer)|GPIO_info;
The function containing the objectionable line is below
void GPIOCtrl(int GPIO_Test, int GPIO_info)
{
int variable;
if (GPIO_Test == 1)
{
variable = *(unsigned short *)(GPIO_buffer)|GPIO_info;
*(unsigned short *)(GPIO_buffer) = variable;
*(ioport int *)IODATA = variable;
}
else
{
variable = *(unsigned short *)(GPIO_buffer)&GPIO_info; /* test to see if currently zero */
if (variable == GPIO_info) /* This section cares for when data=0 */
{
variable = *(unsigned short *)(GPIO_buffer)^GPIO_info; /* data XOR'd to non zero value */
*(unsigned short *)(GPIO_buffer) = variable; /* data buffer loaded with new */
*(ioport int *)IODATA = variable; /* buffer value written to GPIO Port */
}
}
}