/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/ |
H A D | robot_hcsr04.c | 37 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 D | robot_hcsr04.c | 36 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 D | hal_token.c | 34 // 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 D | hal_token.c | 33 // 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 D | hal_token.c | 33 // 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 D | hal_token.c | 33 // 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 D | app_demo_mq2.c | 82 static unsigned char flag = HI_TRUE; in Mq2GetPpm() local 89 if (flag) { in Mq2GetPpm() 90 flag = 0; in Mq2GetPpm()
|
/vendor/ohemu/common/ |
H A D | qemu-run | 193 read -t 5 -p "Enter to start qemu[y/n]:" flag 195 start=${flag:-y}
|