This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

conversion of non zero integer to pointer

Hello, Archaeologist,

I am getting same type of warning that conversion of non zero integer to pointer

Declared function is as

void SD24_B_init(uint16_t baseAddress,
SD24_B_initParam *param)
{
// Reset all interrupts and flags
HWREG16(baseAddress + OFS_SD24BIE) &= 0x0000; //Reset ALL interrupt enables
HWREG16(baseAddress + OFS_SD24BIFG) &= 0x0000; //Reset ALL interrupt flags
HWREG16(baseAddress + OFS_SD24BTRGCTL) &= ~(SD24TRGIE | SD24TRGIFG);

// Turn off all group conversions
HWREG16(baseAddress + OFS_SD24BCTL1) &= ~(SD24GRP0SC | SD24GRP1SC
| SD24GRP2SC | SD24GRP3SC);

// Configure SD24_B
HWREG16(baseAddress + OFS_SD24BCTL0) &= ~((SD24DIV4 | SD24DIV3 | SD24DIV2
| SD24DIV1 |
SD24DIV0) | SD24PDIV_7 |
SD24SSEL_3 | SD24REFS);
HWREG16(baseAddress + OFS_SD24BCTL0) |= (param->clockSourceSelect |
param->clockPreDivider |
param->clockDivider |
param->referenceSelect);

return;
}

and i am passing values as

SD24_B_init(0x0800, SD24_B_CLOCKSOURCE_SMCLK, SD24_B_PRECLOCKDIVIDER_1, SD24_B_CLOCKDIVIDER_1,SD24_B_REF_INTERNAL);

Is this the correct way??
thanks
Regards
Abhishek