/vendor/hisilicon/hispark_pegasus/demo/oc_demo/ |
H A D | task_start.c | 40 osThreadAttr_t attr; in InterruptTask() local 42 attr.name = "Interrupt"; in InterruptTask() 43 attr.attr_bits = 0U; in InterruptTask() 44 attr.cb_mem = NULL; in InterruptTask() 45 attr.cb_size = 0U; in InterruptTask() 46 attr.stack_mem = NULL; in InterruptTask() 47 attr.stack_size = TASK_STACK; in InterruptTask() 48 attr.priority = INTERRUPT_TASK_PRIO; in InterruptTask() 50 if (osThreadNew((osThreadFunc_t)KeyInterruptScan, NULL, &attr) == NULL) { in InterruptTask() 59 osThreadAttr_t attr; in StartTask() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/traffic_light_demo/ |
H A D | task_start.c | 40 osThreadAttr_t attr; in InterruptTask() local 42 attr.name = "Interrupt"; in InterruptTask() 43 attr.attr_bits = 0U; in InterruptTask() 44 attr.cb_mem = NULL; in InterruptTask() 45 attr.cb_size = 0U; in InterruptTask() 46 attr.stack_mem = NULL; in InterruptTask() 47 attr.stack_size = TASK_STACK; in InterruptTask() 48 attr.priority = INTERRUPT_TASK_PRIO; in InterruptTask() 50 if (osThreadNew((osThreadFunc_t)KeyInterruptScan, NULL, &attr) == NULL) { in InterruptTask() 59 osThreadAttr_t attr; in StartTask() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/ |
H A D | task_start.c | 45 osThreadAttr_t attr; in InterruptTask() local 47 attr.name = "Interrupt"; in InterruptTask() 48 attr.attr_bits = 0U; in InterruptTask() 49 attr.cb_mem = NULL; in InterruptTask() 50 attr.cb_size = 0U; in InterruptTask() 51 attr.stack_mem = NULL; in InterruptTask() 52 attr.stack_size = TASK_STACK; in InterruptTask() 53 attr.priority = INTERRUPT_TASK_PRIO; in InterruptTask() 55 if (osThreadNew((osThreadFunc_t)KeyInterruptScan, NULL, &attr) == NULL) { in InterruptTask() 64 osThreadAttr_t attr; in StartTask() local [all...] |
/vendor/hihope/neptune_iotlink_demo/ble/source/ |
H A D | example.c | 55 osThreadAttr_t attr;
in BLE_Demo() local 57 attr.name = "BLE_Demo_Task";
in BLE_Demo() 58 attr.attr_bits = 0U;
in BLE_Demo() 59 attr.cb_mem = NULL;
in BLE_Demo() 60 attr.cb_size = 0U;
in BLE_Demo() 61 attr.stack_mem = NULL;
in BLE_Demo() 62 attr.stack_size = BLE_DEMO_TASK_STACK_SIZE; /* 堆栈大小2048 */
in BLE_Demo() 63 attr.priority = BLE_DEMO_TASK_PRIO;
in BLE_Demo() 66 if (osThreadNew((osThreadFunc_t)BLE_Task_Entry, NULL, &attr) == NULL) {
in BLE_Demo()
|
H A D | ble_server_demo.c | 92 BleGattAttr attr[ATTR_MAX_NUM];
in test_add_service3() local 94 attr[ATTR_NUM_0].attrType = OHOS_BLE_ATTRIB_TYPE_SERVICE;
in test_add_service3() 95 attr[ATTR_NUM_0].uuidType = OHOS_UUID_TYPE_128_BIT;
in test_add_service3() 96 memcpy_s(attr[ATTR_NUM_0].uuid, sizeof(attr[ATTR_NUM_0].uuid),
in test_add_service3() 99 attr[ATTR_NUM_1].attrType = OHOS_BLE_ATTRIB_TYPE_CHAR;
in test_add_service3() 100 attr[ATTR_NUM_1].uuidType = OHOS_UUID_TYPE_128_BIT;
in test_add_service3() 101 memcpy_s(attr[ATTR_NUM_1].uuid, sizeof(attr[ATTR_NUM_1].uuid),
in test_add_service3() 106 attr[ATTR_NUM_ in test_add_service3() 160 BleGattAttr attr[ATTR_MAX_NUM]; test_add_service() local 221 BleGattAttr attr[ATTR_MAX_NUM]; test_add_service2() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/adc_demo/ |
H A D | adc_demo.c | 53 osThreadAttr_t attr; in ADCLightDemo() local 55 attr.name = "ADCLightTask"; in ADCLightDemo() 56 attr.attr_bits = 0U; in ADCLightDemo() 57 attr.cb_mem = NULL; in ADCLightDemo() 58 attr.cb_size = 0U; in ADCLightDemo() 59 attr.stack_mem = NULL; in ADCLightDemo() 60 attr.stack_size = ATTR.STACK_SIZE; in ADCLightDemo() 61 attr.priority = osPriorityNormal; in ADCLightDemo() 63 if (osThreadNew(ADCLightTask, NULL, &attr) == NULL) { in ADCLightDemo()
|
/vendor/hisilicon/hispark_pegasus/demo/delay_demo/ |
H A D | delay.c | 44 osThreadAttr_t attr; in DelayTestTask() local 46 attr.name = "rtosv2_delay_main"; in DelayTestTask() 47 attr.attr_bits = 0U; in DelayTestTask() 48 attr.cb_mem = NULL; in DelayTestTask() 49 attr.cb_size = 0U; in DelayTestTask() 50 attr.stack_mem = NULL; in DelayTestTask() 51 attr.stack_size = ATTR.STACK_SIZE; in DelayTestTask() 52 attr.priority = osPriorityNormal; in DelayTestTask() 54 if (osThreadNew((osThreadFunc_t)rtosv2_delay_main, NULL, &attr) == NULL) { in DelayTestTask()
|
/vendor/hisilicon/hispark_pegasus/demo/environment_demo/ |
H A D | task_start.c | 34 osThreadAttr_t attr = {0}; in StartTask() local 37 attr.name = "EnvironmentDemo"; in StartTask() 38 attr.attr_bits = 0U; in StartTask() 39 attr.cb_mem = NULL; in StartTask() 40 attr.cb_size = 0U; in StartTask() 41 attr.stack_mem = NULL; in StartTask() 42 attr.stack_size = ENVIRONMENT_TASK_STACK; in StartTask() 43 attr.priority = osPriorityNormal; in StartTask() 45 if (osThreadNew((osThreadFunc_t)EnvironmentDemo, NULL, &attr) == NULL) { in StartTask()
|
/vendor/hisilicon/hispark_pegasus/demo/gpioled_demo/ |
H A D | led_example.c | 51 osThreadAttr_t attr; in GpioExampleEntry() local 53 attr.name = "GpioTask"; in GpioExampleEntry() 54 attr.attr_bits = 0U; in GpioExampleEntry() 55 attr.cb_mem = NULL; in GpioExampleEntry() 56 attr.cb_size = 0U; in GpioExampleEntry() 57 attr.stack_mem = NULL; in GpioExampleEntry() 58 attr.stack_size = LED_TASK_STACK_SIZE; in GpioExampleEntry() 59 attr.priority = LED_TASK_PRIO; in GpioExampleEntry() 61 if (osThreadNew((osThreadFunc_t)GpioTask, NULL, &attr) == NULL) { in GpioExampleEntry()
|
/vendor/hisilicon/hispark_pegasus/demo/hello_world_demo/ |
H A D | oled_demo.c | 44 osThreadAttr_t attr; in OledDemo() local 45 attr.name = "OledmentTask"; in OledDemo() 46 attr.attr_bits = 0U; in OledDemo() 47 attr.cb_mem = NULL; in OledDemo() 48 attr.cb_size = 0U; in OledDemo() 49 attr.stack_mem = NULL; in OledDemo() 50 attr.stack_size = 4096; /* 任务大小4096 */ in OledDemo() 51 attr.priority = osPriorityNormal; in OledDemo() 53 if (osThreadNew(OledmentTask, NULL, &attr) == NULL) { in OledDemo()
|
H A D | led_example.c | 74 osThreadAttr_t attr; in LedExampleEntry() local 79 attr.name = "LedTask"; in LedExampleEntry() 80 attr.attr_bits = 0U; in LedExampleEntry() 81 attr.cb_mem = NULL; in LedExampleEntry() 82 attr.cb_size = 0U; in LedExampleEntry() 83 attr.stack_mem = NULL; in LedExampleEntry() 84 attr.stack_size = LED_TASK_STACK_SIZE; in LedExampleEntry() 85 attr.priority = LED_TASK_PRIO; in LedExampleEntry() 87 if (osThreadNew((osThreadFunc_t)LedTask, NULL, &attr) == NULL) { in LedExampleEntry()
|
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/ |
H A D | demo_entry_cmsis.c | 46 osThreadAttr_t attr; in NetDemoEntry() local 48 attr.name = "NetDemoTask"; in NetDemoEntry() 49 attr.attr_bits = 0U; in NetDemoEntry() 50 attr.cb_mem = NULL; in NetDemoEntry() 51 attr.cb_size = 0U; in NetDemoEntry() 52 attr.stack_mem = NULL; in NetDemoEntry() 53 attr.stack_size = 10240; /* 堆栈大小为10240 */ in NetDemoEntry() 54 attr.priority = osPriorityNormal; in NetDemoEntry() 56 if (osThreadNew(NetDemoTask, NULL, &attr) == NULL) { in NetDemoEntry()
|
/vendor/hisilicon/hispark_pegasus/demo/led_demo/ |
H A D | app_demo_led_control.c | 38 osThreadAttr_t attr; in LedControlTask() local 44 attr.name = "LedCntrolDemo"; in LedControlTask() 45 attr.attr_bits = 0U; in LedControlTask() 46 attr.cb_mem = NULL; in LedControlTask() 47 attr.cb_size = 0U; in LedControlTask() 48 attr.stack_mem = NULL; in LedControlTask() 49 attr.stack_size = 1024; /* 堆栈大小为1024 */ in LedControlTask() 50 attr.priority = osPriorityNormal; in LedControlTask() 52 if (osThreadNew((osThreadFunc_t)LedCntrolDemo, NULL, &attr) == NULL) { in LedControlTask()
|
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/environment/ |
H A D | oled_test.c | 40 osThreadAttr_t attr; in OledDemo() local 42 attr.name = "OledTask"; in OledDemo() 43 attr.attr_bits = 0U; in OledDemo() 44 attr.cb_mem = NULL; in OledDemo() 45 attr.cb_size = 0U; in OledDemo() 46 attr.stack_mem = NULL; in OledDemo() 47 attr.stack_size = ATTR.STACK_SIZE; in OledDemo() 48 attr.priority = osPriorityNormal; in OledDemo() 50 if (osThreadNew(OledTask, NULL, &attr) == NULL) { in OledDemo()
|
/vendor/hisilicon/hispark_pegasus/demo/easy_wifi_demo/demo/ |
H A D | wifi_connect_demo.c | 57 osThreadAttr_t attr; in WifiConnectDemo() local 59 attr.name = "WifiConnectTask"; in WifiConnectDemo() 60 attr.attr_bits = 0U; in WifiConnectDemo() 61 attr.cb_mem = NULL; in WifiConnectDemo() 62 attr.cb_size = 0U; in WifiConnectDemo() 63 attr.stack_mem = NULL; in WifiConnectDemo() 64 attr.stack_size = ATTR.STACK_SIZE; in WifiConnectDemo() 65 attr.priority = osPriorityNormal; in WifiConnectDemo() 67 if (osThreadNew(WifiConnectTask, NULL, &attr) == NULL) { in WifiConnectDemo()
|
H A D | wifi_hotspot_demo.c | 65 osThreadAttr_t attr; in WifiHotspotDemo() local 67 attr.name = "WifiHotspotTask"; in WifiHotspotDemo() 68 attr.attr_bits = 0U; in WifiHotspotDemo() 69 attr.cb_mem = NULL; in WifiHotspotDemo() 70 attr.cb_size = 0U; in WifiHotspotDemo() 71 attr.stack_mem = NULL; in WifiHotspotDemo() 72 attr.stack_size = ATTR.STACK_SIZE; in WifiHotspotDemo() 73 attr.priority = osPriorityNormal; in WifiHotspotDemo() 75 if (osThreadNew(WifiHotspotTask, NULL, &attr) == NULL) { in WifiHotspotDemo()
|
/vendor/hisilicon/hispark_pegasus/demo/i2caht20_demo/test/ |
H A D | aht20_test.c | 62 osThreadAttr_t attr; in Aht20Test() local 64 attr.name = "Aht20Task"; in Aht20Test() 65 attr.attr_bits = 0U; in Aht20Test() 66 attr.cb_mem = NULL; in Aht20Test() 67 attr.cb_size = 0U; in Aht20Test() 68 attr.stack_mem = NULL; in Aht20Test() 69 attr.stack_size = ATTR.STACK_SIZE; in Aht20Test() 70 attr.priority = osPriorityNormal; in Aht20Test() 72 if (osThreadNew(Aht20TestTask, NULL, &attr) == NULL) { in Aht20Test()
|
/vendor/hisilicon/hispark_pegasus/demo/pwmled_demo/ |
H A D | pwm_led_demo.c | 54 osThreadAttr_t attr; in PWMLedDemo() local 59 attr.name = "PWMLedDemoTask"; in PWMLedDemo() 60 attr.attr_bits = 0U; in PWMLedDemo() 61 attr.cb_mem = NULL; in PWMLedDemo() 62 attr.cb_size = 0U; in PWMLedDemo() 63 attr.stack_mem = NULL; in PWMLedDemo() 64 attr.stack_size = ATTR.STACK_SIZE; in PWMLedDemo() 65 attr.priority = osPriorityNormal; in PWMLedDemo() 67 if (osThreadNew(PWMLedDemoTask, NULL, &attr) == NULL) { in PWMLedDemo()
|
/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot/ |
H A D | robot_tcrt5000.c | 62 osThreadAttr_t attr;
in RobotDemo() local 64 attr.name = "RobotTask";
in RobotDemo() 65 attr.attr_bits = 0U;
in RobotDemo() 66 attr.cb_mem = NULL;
in RobotDemo() 67 attr.cb_size = 0U;
in RobotDemo() 68 attr.stack_mem = NULL;
in RobotDemo() 69 attr.stack_size = TASK_STAK_SIZE;
in RobotDemo() 70 attr.priority = osPriorityNormal;
in RobotDemo() 72 if (osThreadNew(RobotTask, NULL, &attr) == NULL) {
in RobotDemo()
|
/vendor/hisilicon/hispark_pegasus/demo/time_demo/ |
H A D | timer.c | 65 osThreadAttr_t attr; in TimerTestTask() local 67 attr.name = "timer_periodic"; in TimerTestTask() 68 attr.attr_bits = 0U; in TimerTestTask() 69 attr.cb_mem = NULL; in TimerTestTask() 70 attr.cb_size = 0U; in TimerTestTask() 71 attr.stack_mem = NULL; in TimerTestTask() 72 attr.stack_size = ATTR.STACK_SIZE; in TimerTestTask() 73 attr.priority = osPriorityNormal; in TimerTestTask() 75 if (osThreadNew((osThreadFunc_t)timer_periodic, NULL, &attr) == NULL) { in TimerTestTask()
|
/vendor/hisilicon/hispark_pegasus/demo/uart_demo/ |
H A D | uart_demo.c | 70 osThreadAttr_t attr = {0}; in UartDemo_Entry() local 74 attr.name = "UartDemo_Task"; in UartDemo_Entry() 75 attr.attr_bits = 0U; in UartDemo_Entry() 76 attr.cb_mem = NULL; in UartDemo_Entry() 77 attr.cb_size = 0U; in UartDemo_Entry() 78 attr.stack_mem = NULL; in UartDemo_Entry() 79 attr.stack_size = ATTR.STACK_SIZE; // 堆栈大小 in UartDemo_Entry() 80 attr.priority = osPriorityNormal; // 优先级 in UartDemo_Entry() 82 if (osThreadNew((osThreadFunc_t)UartDemo_Task, NULL, &attr) == NULL) { in UartDemo_Entry()
|
/vendor/hisilicon/hispark_pegasus/demo/mutex_demo/ |
H A D | mutex.c | 51 osThreadAttr_t attr = { in newThread() local 54 osThreadId_t tid = osThreadNew(func, arg, &attr); in newThread() 66 osMutexAttr_t attr = {0}; in rtosv2_mutex_main() local 68 osMutexId_t mid = osMutexNew(&attr); in rtosv2_mutex_main() 92 osThreadAttr_t attr; in MutexTestTask() local 94 attr.name = "rtosv2_mutex_main"; in MutexTestTask() 95 attr.attr_bits = 0U; in MutexTestTask() 96 attr.cb_mem = NULL; in MutexTestTask() 97 attr.cb_size = 0U; in MutexTestTask() 98 attr in MutexTestTask() [all...] |
/vendor/hisilicon/hispark_pegasus/demo/nfc_demo/ |
H A D | app_demo_nfc.c | 91 osThreadAttr_t attr = {0}; in NfcExampleEntry() local 93 attr.stack_size = C08I_NFC_DEMO_TASK_STAK_SIZE; in NfcExampleEntry() 94 attr.priority = C08I_NFC_TASK_PRIORITY; in NfcExampleEntry() 95 attr.name = "nfcTask"; in NfcExampleEntry() 96 attr.attr_bits = 0U; in NfcExampleEntry() 97 attr.cb_mem = NULL; in NfcExampleEntry() 98 attr.cb_size = 0U; in NfcExampleEntry() 99 attr.stack_mem = NULL; in NfcExampleEntry() 101 if (osThreadNew((osThreadFunc_t)NfcTask, NULL, &attr) == NULL) { in NfcExampleEntry() 120 osThreadAttr_t attr in NfcDisplayExampleEntry() local [all...] |
/vendor/hisilicon/hispark_pegasus/demo/beep_demo/ |
H A D | app_demo_beep_control.c | 61 osThreadAttr_t attr; in StartPWMBeepTask() local 74 attr.name = "PWMBeepTask"; in StartPWMBeepTask() 75 attr.attr_bits = 0U; in StartPWMBeepTask() 76 attr.cb_mem = NULL; in StartPWMBeepTask() 77 attr.cb_size = 0U; in StartPWMBeepTask() 78 attr.stack_mem = NULL; in StartPWMBeepTask() 79 attr.stack_size = 1024; /* 堆栈大小为1024 */ in StartPWMBeepTask() 80 attr.priority = osPriorityNormal; in StartPWMBeepTask() 82 if (osThreadNew((osThreadFunc_t)PWMBeepTask, NULL, &attr) == NULL) { in StartPWMBeepTask()
|
/vendor/hisilicon/hispark_pegasus/demo/gpiobutton_demo/ |
H A D | button_example.c | 91 osThreadAttr_t attr; in LedExampleEntry() local 101 attr.name = "LedTask"; in LedExampleEntry() 102 attr.attr_bits = 0U; in LedExampleEntry() 103 attr.cb_mem = NULL; in LedExampleEntry() 104 attr.cb_size = 0U; in LedExampleEntry() 105 attr.stack_mem = NULL; in LedExampleEntry() 106 attr.stack_size = LED_TASK_STACK_SIZE; in LedExampleEntry() 107 attr.priority = LED_TASK_PRIO; in LedExampleEntry() 109 if (osThreadNew((osThreadFunc_t)LedTask, NULL, &attr) == NULL) { in LedExampleEntry()
|