Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN
Hi
We are developing device driver for EMAC module for TMS570ls3137, we have created our own register mapping (bit field definitions) , however we have gone through the HocoGen code and the EMAC register access are 32-bit write or 32-read. Our clarification is can we access (Read/Write) EMAC registers bit wise for the configurations.
Our Code:
EMAC_REG->MACCONTROL.B.GMIIEN = 1U;
HalcoGen Code:
HWREG(emacBase + EMAC_MACCONTROL) |= EMAC_MACCONTROL_GMIIEN;