Im using ccs compiler,I want to access direct register without sing inbuilt function.
here I have done initialization for PB3 as input .
Is this the way to acces dirrect registers.
HWREG(GPIO_PORTB_BASE + GPIO_O_DIR)= ~GPIO_PIN_3; //PB3 input
HWREG(GPIO_PORTB_BASE + GPIO_O_AFSEL)=~(GPIO_PIN_3);//PB3 GPIO
HWREG(GPIO_PORTB_BASE+GPIO_O_DEN)=GPIO_PIN_3;//PB3 as digital