SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
The programming models or code listings follow the rules:
| Type | Definition | Example |
|---|---|---|
| File | Starts with the module name | PRCM_test1.c MCBSP1_init.h |
| Variable | Global variables are prefixed by "g_" Pointers are prefixed by "p" Global pointers are prefixed by "g_p" | g_SDMA_LogicalChan pAddrCounter g_pSDMA_LogicalChan |
| Function | Starts with the module name | PRCM_SetupClocks() ArmIntC_MaskInterrupts() |
| Typedef | Ends with "_t" | PRCM_Struct_t |
| Definition | Starts with the module name and is followed by the register name | #define SMS_ERR_TYPE *((volatileUint32*)0x680080F4) #define MCBSP2_RCR1_REG *((volatile Uint32*)0x4807401C) |
| Enumeration | Starts with the module name | Typedef enum DMA_Mode_Label { INPUT_MODE OUTPUT_MODE } DMA_Mode_t; |