g_dbus_object_manager_server_export(manager, G_DBUS_OBJECT_SKELETON(object)); g_object_unref(object);// get gpio device pathsintrc = GPIO_OK;do{ rc =gpio_init(connection,&gpio_button);if(rc != GPIO_OK) {break; } rc = gpio_open_interrupt(&gpio_button,on_button_interrupt,object);i...
for (id = chip->base; id < chip->base + chip->ngpio; id++) { //查找对应全局gpio_desc数组项 if (test_bit(FLAG_REQUESTED, &gpio_desc[id].flags)) { //判断是否存在标志含FLAG_REQUESTED的gpio口 status = -EBUSY; break; } } if (status == 0) { for (id = chip->base; id < ...
开发者ID:8tab,项目名称:qemu,代码行数:7,代码来源:nios2_iic.c 示例4: kvm_openpic_realize ▲点赞 1▼ staticvoidkvm_openpic_realize(DeviceState *dev, Error **errp){ SysBusDevice *d = SYS_BUS_DEVICE(dev); KVMOpenPICState *opp = KVM_OPENPIC(dev); KVMState *s = kvm_state;intkvm_o...
* the device init subsection. * * The `id' arg to __define_initcall() is needed so that multiple initcalls * can point at the same handler without causing duplicate-symbol build errors. */ #define __define_initcall(fn, id) \ static initcall_t __initcall_##fn##id __used \ __a...
gpiomux_device_install();return0; } 开发者ID:FrozenCow,项目名称:android_kernel_sony_msm8960,代码行数:14,代码来源:board-blue_hayabusa-gpiomux.c 示例14: msm_8974_init_gpiomux ▲点赞 1▼ void__initmsm_8974_init_gpiomux(void){intrc; ...
USBD_Start(&hUsbDeviceFS);while(1) {/* USER CODE END WHILE *//* USER CODE BEGIN 3 */HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_1); HAL_Delay(blinkingDelay); }/* USER CODE END 3 */} 开发者ID:klaus-liebler,项目名称:sensact,代码行数:31,代码来源:main.cpp ...