宏定义 |
| #define |
LOS_NO_WAIT 0 |
| |
Define the timeout interval as LOS_NO_WAIT.
|
| #define |
LOS_WAIT_FOREVER 0xFFFFFFFF |
| |
Define the timeout interval as LOS_WAIT_FOREVER.
|
| #define |
ALIGN(uwAddr, uwBoundary) LOS_Align(uwAddr, uwBoundary) |
| |
Align the beginning of the object with the base address uwAddr, with uwBoundary bytes being the smallest unit of alignment.
|
| #define |
TRUNCATE(uwAddr, uwSize) ((uwAddr) & ~((uwSize) - 1)) |
| |
Align the tail of the object with the base address uwAddr, with uwSize bytes being the smallest unit of alignment.
|
| #define |
READ_UINT8(ucValue, ucAddr) ((ucValue) = *((volatile UINT8 *)(ucAddr))) |
| |
Read a UINT8 value from ucAddr and stroed in ucValue.
|
| #define |
READ_UINT16(usValue, usAddr) ((usValue) = *((volatile UINT16 *)(usAddr))) |
| |
Read a UINT16 value from usAddr and stroed in usAddr.
|
| #define |
READ_UINT32(uwValue, uwAddr) ((uwValue) = *((volatile UINT32 *)(uwAddr))) |
| |
Read a UINT32 value from uwAddr and stroed in uwValue.
|
| #define |
READ_UINT64(ullValue, ullAddr) ((ullValue) = *((volatile UINT64 *)(ullAddr))) |
| |
Read a UINT64 value from ullAddr and stroed in ullValue.
|
| #define |
GET_UINT8(ucAddr) (*((volatile UINT8 *)(ucAddr))) |
| |
Get a UINT8 value from ucAddr.
|
| #define |
GET_UINT16(usAddr) (*((volatile UINT16 *)(usAddr))) |
| |
Get a UINT16 value from usAddr.
|
| #define |
GET_UINT32(uwAddr) (*((volatile UINT32 *)(uwAddr))) |
| |
Get a UINT32 value from uwAddr.
|
| #define |
GET_UINT64(ullAddr) (*((volatile UINT64 *)(ullAddr))) |
| |
Get a UINT64 value from ullAddr.
|
| #define |
WRITE_UINT8(ucValue, ucAddr) (*((volatile UINT8 *)(ucAddr)) = (ucValue)) |
| |
Write a UINT8 ucValue to ucAddr.
|
| #define |
WRITE_UINT16(usValue, usAddr) (*((volatile UINT16 *)(usAddr)) = (usValue)) |
| |
Write a UINT16 usValue to usAddr.
|
| #define |
WRITE_UINT32(uwValue, uwAddr) (*((volatile UINT32 *)(uwAddr)) = (uwValue)) |
| |
Write a UINT32 uwValue to uwAddr.
|
| #define |
WRITE_UINT64(ullValue, ullAddr) (*((volatile UINT64 *)(ullAddr)) = (ullValue)) |
| |
Write a UINT64 ullAddr to ullAddr.
|
函数 |
| UINT32 |
LOS_Align (UINT32 uwAddr, UINT32 uwBoundary) |
| |
Align the value (uwAddr) by some bytes (uwBoundary) you specify.
|
| VOID |
LOS_Msleep (UINT32 uwMsecs) |
| |
Sleep the current task.
|
| UINT32 |
LOS_Start (VOID) |
| |
System kernel initialization function.
|
| UINT32 |
LOS_KernelInit (VOID) |
| |
System kernel initialization function.
|