Home
last modified time | relevance | path

Searched refs:flag (Results 1 - 8 of 8) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/
H A Drobot_hcsr04.c37 unsigned int flag = 0; in GetDistance() local
53 if (value == IOT_GPIO_VALUE1 && flag == 0) { in GetDistance()
55 flag = 1; in GetDistance()
57 if (value == IOT_GPIO_VALUE0 && flag == 1) { in GetDistance()
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot/
H A Drobot_hcsr04.c36 unsigned int flag = 0; in GetDistance() local
52 if (value == IOT_GPIO_VALUE1 && flag == 0) { in GetDistance()
54 flag = 1; in GetDistance()
56 if (value == IOT_GPIO_VALUE0 && flag == 1) { in GetDistance()
/vendor/hisilicon/hispark_pegasus/hals/utils/token/
H A Dhal_token.c34 // 4 Bytes for token flag
35 // if token's both area are available, when read token, always return area which flag is bigger;
36 // and recover area which flag is small while write token.
189 static void SetTokenFlag(uint8_t flag[], uint32_t value) in SetTokenFlag() argument
192 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
225 // token area A and B both have data, return area which flag is larger than the other one. in OEMReadToken()
242 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenANoToken() local
244 (memcpy_s(tokenWithFlagA + len, TOKEN_WITH_FLAG_SIZE - len, flag, TOKEN_FLAG_SIZE) != 0)) { in OEMWriteTokenANoToken()
262 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenB() local
263 SetTokenFlag(flag, (uint32_ in OEMWriteTokenB()
284 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenA() local
308 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
324 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
[all...]
/vendor/hisilicon/hispark_taurus/hals/utils/token/
H A Dhal_token.c33 // 4 Bytes for token flag
34 // if token's both area are available, when read token, always return area which flag is bigger;
35 // and recover area which flag is small while write token.
269 static void SetTokenFlag(uint8_t flag[], uint32_t value) in SetTokenFlag() argument
272 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
295 // token area A and B both have data, return area which flag is larger than the other one. in OEMReadToken()
313 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenANoToken() local
315 (memcpy_s(tokenWithFlagA + len, TOKEN_WITH_FLAG_SIZE - len, flag, TOKEN_FLAG_SIZE) != 0)) { in OEMWriteTokenANoToken()
333 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenB() local
334 SetTokenFlag(flag, (uint32_ in OEMWriteTokenB()
355 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenA() local
379 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
395 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
[all...]
/vendor/hisilicon/hispark_taurus_linux/hals/utils/token/
H A Dhal_token.c33 // 4 Bytes for token flag
34 // if token's both area are available, when read token, always return area which flag is bigger;
35 // and recover area which flag is small while write token.
269 static void SetTokenFlag(uint8_t flag[], uint32_t value) in SetTokenFlag() argument
272 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
295 // token area A and B both have data, return area which flag is larger than the other one. in OEMReadToken()
313 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenANoToken() local
315 (memcpy_s(tokenWithFlagA + len, TOKEN_WITH_FLAG_SIZE - len, flag, TOKEN_FLAG_SIZE) != 0)) { in OEMWriteTokenANoToken()
333 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenB() local
334 SetTokenFlag(flag, (uint32_ in OEMWriteTokenB()
355 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenA() local
379 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
395 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
[all...]
/vendor/hisilicon/hispark_taurus_mini_system/hals/utils/token/
H A Dhal_token.c33 // 4 Bytes for token flag
34 // if token's both area are available, when read token, always return area which flag is bigger;
35 // and recover area which flag is small while write token.
269 static void SetTokenFlag(uint8_t flag[], uint32_t value) in SetTokenFlag() argument
272 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
295 // token area A and B both have data, return area which flag is larger than the other one. in OEMReadToken()
313 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenANoToken() local
315 (memcpy_s(tokenWithFlagA + len, TOKEN_WITH_FLAG_SIZE - len, flag, TOKEN_FLAG_SIZE) != 0)) { in OEMWriteTokenANoToken()
333 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; in OEMWriteTokenB() local
334 SetTokenFlag(flag, (uint32_ in OEMWriteTokenB()
355 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenA() local
379 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
395 uint8_t flag[TOKEN_FLAG_SIZE] = {0}; OEMWriteTokenSmaller() local
[all...]
/vendor/hisilicon/hispark_pegasus/demo/environment_demo/
H A Dapp_demo_mq2.c82 static unsigned char flag = HI_TRUE; in Mq2GetPpm() local
89 if (flag) { in Mq2GetPpm()
90 flag = 0; in Mq2GetPpm()
/vendor/ohemu/common/
H A Dqemu-run193 read -t 5 -p "Enter to start qemu[y/n]:" flag
195 start=${flag:-y}

Completed in 7 milliseconds