In reply to chr_sue:
My C testcase looks like this :
include “CMSDK_CM0.h”
include <stdio.h>
include <string.h>
include <i2c_stdout.h>
int main(void)
{
I2C_INIT();
return 0;
}
I2C_INIT is inlcuded in another file named i2c_stdout.c
include “CMSDK_CM0.h”
void I2C_INIT(void)
{
CMSDK_I2C → CNTRL = 0x12456AD0;
}