UINT32 LOS_Align ( UINT32  uwAddr,
UINT32  uwBoundary  
)

Align the value (uwAddr) by some bytes (uwBoundary) you specify.

Description:
This API is used to align the value (uwAddr) by some bytes (uwBoundary) you specify.
注意:
  • the value of uwBoundary usually is 4,8,16,32.
参数:
参数名称 描述
uwAddr  [IN] The variable what you want to align.
uwBoundary  [IN] The align size what you want to align.
返回值:
返回值 描述
UINT32  The variable what have been aligned.
Dependency:
  • los_base.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00