思澈科技软件开发工具包  2.20
Section variables

Section variables. More...

Macros

#define SECTION_LENGTH(section_name)
 Macro for retrieving the length of a given section, in bytes. More...
 
#define EXEC_REGION_SIZE(region_name)   ((size_t)(EXEC_REGION_END_ADDR(region_name)) - (size_t)(EXEC_REGION_START_ADDR(region_name)))
 
#define SECTION_ITEM_GET(section_name, data_type, i)
 Macro for retrieving a variable from a section. More...
 
#define SECTION_ITEM_COUNT(section_name, data_type)
 Macro for getting the number of variables in a section. More...
 
#define SECTION_ZIDATA_BEGIN(section_name)
 
#define SECTION_ZIDATA_END
 

Detailed Description

Section variables.

Macro Definition Documentation

◆ SECTION_ITEM_COUNT

#define SECTION_ITEM_COUNT (   section_name,
  data_type 
)

Macro for getting the number of variables in a section.

Parameters
[in]section_nameName of the section.
[in]data_typeData type of the variables in the section.

◆ SECTION_ITEM_GET

#define SECTION_ITEM_GET (   section_name,
  data_type,
 
)

Macro for retrieving a variable from a section.

Warning
The stored symbol can only be resolved using this macro if the type of the data is word aligned. The operation of acquiring the stored symbol relies on the size of the stored type. No padding can exist in the named section in between individual stored items or this macro will fail.
Parameters
[in]section_nameName of the section.
[in]data_typeData type of the variable.
[in]iIndex of the variable in section.

◆ SECTION_LENGTH

#define SECTION_LENGTH (   section_name)

Macro for retrieving the length of a given section, in bytes.

Parameters
[in]section_nameName of the section.