|
iLLD_TC27xD
1.0
|
[link: Enumerated Types]
Enumeration items must be prefixed with the enumeration type. Correct:
Wrong (IfxDma_ChannelPrioritySelect):
[link: Directory name]
Dirtectory shall have the same name as the driver name without the Ifx prefix.
Correct:
- Dma
- Dma
- IfxDma.c
- IfxDma.h
Wrong:
- Dma
- <SPAN style="color:red">Interface</SPAN>
- IfxDma.c
- IfxDma.h
[link: Function's parameter & struct members]
Function parameter are not doing an action done but does set values for confiuguration, then there is no verb in the name.
Correct:
Wrong(enableHardwareRequest):
[link: Static function names shall also be prefixed]
Correct:
Wrong:
[link: Do not explicitely use 'handle' in the parameter name]
Remove the name ‘handle’ from the parameter’s name, even we hnow that it is an handle. It does not add information but increase the source code length.
Correct:
Wrong(dmaHandle):