This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GPIO Commit register is not modifiable

I just updated uVision to v4.72.10.0 from v4.71 so that I may build code for TI TM4C123GH6PM. The header file for I/O register definitions, C:\Keil\ARM\INC\TI\TM4C123\TM4C123GH6PM.h, is written in a new format using struct to group all the registers of a module together. Now GPIO_PORTF_DATA_R becomes GPIOF->DATA. Portability and compatibility with TI's TivaWare certainly becomes an issue.

The GPIO Commit Register is defined as
__I uint32_t CR;
in struct GPIOA_Type and all six GPIO ports are defined with GPIOA_Type. That makes the Commit Register read-only. The commit register bits of GPIOD7 and GPIOF0 and the four JTAG pins of GPIOC should be read/write bit. Or am I missing something?

Parents Reply Children
No data