I want to assign a pointer to a memory space to another register, like
DMA1_Channel4->CPAR = (uint32_t*)I2C2->TXDR;
elsewhere in my code i have used for example
DMA1_Channel4->CMAR = (uint8_t*)DACdata;
which works, but gives a warning - assignment makes pointer from integer without a cast. however I don't know the correct syntax for the first instance