I'm a begginer to device driver.
Now I'm trying to set a gpio register and check if it is set correctly.
Following is my code.
RETAILMSG(1, (TEXT("v_pIOPregs->GPBCON is %ud - %p\r\n",
*(v_pIOPregs->GPBCON), v_pIOPregs->GPBCON)));
v_pIOPregs->GPBCON = 0x155555;
RETAILMSG(1, (TEXT("v_pIOPregs->GPBCON is %ud - %p\r\n",
*(v_pIOPregs->GPBCON), v_pIOPregs->GPBCON)));
But the result is not same as my expection.
14034 PID:34c9fc6 TID:34ad6ca v_pIOPregs->GPBCON is 2202309720d - 0
14034 PID:34c9fc6 TID:34ad6ca v_pIOPregs->GPBCON is 2202309720d - 60010
Although I set 0x155555 to GPBCON, the retailmsg printed 60010.
What's wrong with my code?
Please help me.