Hi,
I wonder which one is more advantageous in terms of code processing speed between the legacy bit-field approach and the direct register access model of the Driver API.
In the example below, GPIO port 12 of the F28388D is individually manipulated with the GPASET register. (Legacy bit field approach and driver API's direct register access model were applied respectively.)
[Bit-field approach]
Clock profile result: 4 cycles
[Driver API's direct register access model]
Clock profile result: 2 cycles
According to the Clock Profile results, the direct register access model of the Driver API seems to be more efficient in terms of processing speed when independently manipulating specific bits of registers.
I wonder if this result is correct.
Based on code processing speed, which approach is more efficient?
Thanks and regards,
Sang-il