Question
Use of C language bitfields for device register I/O in STM32CubeC5
I noticed that stm32c5xx_hal_fdcan.c uses C language bitfields to access device registers. Since bitfields are compiler specific, every knowledgeable embedded software engineer knows that using bitfields to access device registers is non-standard and not to be used. I suggest that using bitfields to access device registers be changed. You can refer to STM32CubeH7 for correctly accessing device registers.
BTW. I tried to open a support issue in the on-line support, but received the following error:
