/AliOS-Things-master/components/drivers/core/base/core/ |
A D | u_bus.c | 46 bus = p->bus; in u_bus_dump_all() 71 ddkc_info("bus:%p, name:%s, p:%p\r\n", bus, bus->name, bus->p); in u_bus_dump() 107 u_bus_t *bus = dev->bus; in u_bus_add_device() local 131 bus = dev->bus; in u_bus_del_device() 270 u_bus_t *bus = dev->bus; in u_bus_try_init_device() local 312 u_bus_t *bus = drv->bus; in u_bus_add_driver() local 331 u_bus_t *bus = drv->bus; in u_bus_attach_driver() local 377 bus = p->bus; in u_bus_get_by_name() 435 p->bus = bus; in u_bus_node_initialize() 526 bus = p->bus; [all …]
|
A D | u_driver.c | 34 drv, drv->bus, drv->p); in u_driver_dump() 51 u_bus_t *bus = drv->bus; in _bus_find_driver() local 56 dlist_for_each_entry_safe(&bus->p->drv_list, next, drv_p, u_driver_private_t, bus_node) { in _bus_find_driver() 115 if (!drv->p || !drv->bus || !drv->name) { in u_driver_add() 116 ddkc_err("invalid drv->p:%p, drv->bus:%p or drv->name:%p\r\n", drv->p, drv->bus, drv->name); in u_driver_add()
|
A D | u_device.c | 49 dev->parent, dev->bus, dev->drv, dev->driver_data); in u_device_dump() 103 if (!dev || !dev->p || !dev->bus) { in u_device_add() 104 …"invalid dev:%p or dev->p:%p or dev->bus:%p\r\n", dev, dev ? dev->p : NULL, dev ? dev->bus : NULL); in u_device_add() 108 if (!dev->bus->name || (dev->id >= MAX_DEV_ID_NUM)){ in u_device_add() 109 ddkc_err("invalid bus name:%p or dev->id:%d\r\n", dev->bus->name, dev->id); in u_device_add() 114 len = strlen(dev->bus->name) + MAX_DEV_ID_DIGS + 1; // 1 is for '\0' in u_device_add() 123 snprintf(p->name, len, "%s%d", dev->bus->name, dev->id); in u_device_add()
|
/AliOS-Things-master/components/py_engine/tests/pyb/ |
A D | board_pybv1x.py | 12 pyb.UART(bus, 9600) 13 print("UART", bus) 15 print("ValueError", bus) 20 pyb.SPI(bus) 21 print("SPI", bus) 23 print("ValueError", bus) 26 for bus in (2, 3, "X", "Y", "Z"): 28 pyb.I2C(bus) 29 print("I2C", bus) 31 print("ValueError", bus) [all …]
|
A D | i2c.py | 5 for bus in (-1, 0, 1): 7 I2C(bus) 8 print("I2C", bus) 10 print("ValueError", bus)
|
A D | uart.py | 4 for bus in (-1, 0, 1, 2, 5, 6): 6 UART(bus, 9600) 7 print("UART", bus) 9 print("ValueError", bus)
|
A D | spi.py | 4 for bus in (-1, 0, 1, 2): 6 SPI(bus) 7 print("SPI", bus) 9 print("ValueError", bus)
|
A D | can.py | 12 for bus in (-1, 0, 1, 3): 14 CAN(bus, CAN.LOOPBACK) 15 print("CAN", bus) 17 print("ValueError", bus) 180 def cb0(bus, reason): argument 190 def cb1(bus, reason): argument 200 def cb0a(bus, reason): argument 210 def cb1a(bus, reason): argument
|
/AliOS-Things-master/components/py_engine/engine/drivers/memory/ |
A D | spiflash.c | 62 c->bus.u_qspi.proto->ioctl(c->bus.u_qspi.data, MP_QSPI_IOCTL_BUS_ACQUIRE); in mp_spiflash_acquire_bus() 69 c->bus.u_qspi.proto->ioctl(c->bus.u_qspi.data, MP_QSPI_IOCTL_BUS_RELEASE); in mp_spiflash_release_bus() 78 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, 1, &cmd, NULL); in mp_spiflash_write_cmd_data() 81 c->bus.u_qspi.proto->write_cmd_data(c->bus.u_qspi.data, cmd, len, data); in mp_spiflash_write_cmd_data() 91 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, buff_len, buf, NULL); in mp_spiflash_transfer_cmd_addr_data() 93 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, len, src, NULL); in mp_spiflash_transfer_cmd_addr_data() 95 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, len, dest, dest); in mp_spiflash_transfer_cmd_addr_data() 103 c->bus.u_qspi.proto->write_cmd_addr_data(c->bus.u_qspi.data, cmd, addr, len, src); in mp_spiflash_transfer_cmd_addr_data() 113 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, 1, &cmd, NULL); in mp_spiflash_read_cmd() 114 c->bus.u_spi.proto->transfer(c->bus.u_spi.data, len, (void*)&buf, (void*)&buf); in mp_spiflash_read_cmd() [all …]
|
A D | spiflash.h | 63 } bus; member
|
/AliOS-Things-master/components/drivers/core/base/platform/ |
A D | u_platform_bus.c | 168 if (dev->dev.bus && dev->dev.bus != &u_platform_bus) { in u_platform_device_register() 170 dev->dev.bus, dev->dev.bus->name, &u_platform_bus); in u_platform_device_register() 173 dev->dev.bus = &u_platform_bus; in u_platform_device_register() 204 if (drv->bus && drv->bus != &u_platform_bus) { in u_platform_driver_register() 206 drv->bus, drv->bus->name, &u_platform_bus); in u_platform_driver_register() 209 drv->bus = &u_platform_bus; in u_platform_driver_register() 212 drv->driver.bus = &u_platform_bus; in u_platform_driver_register()
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | monitor.h | 66 u8_t bus; member 94 void bt_monitor_new_index(u8_t type, u8_t bus, bt_addr_t *addr, 100 #define bt_monitor_new_index(type, bus, addr, name) argument
|
A D | monitor.c | 173 void bt_monitor_new_index(u8_t type, u8_t bus, bt_addr_t *addr, in bt_monitor_new_index() argument 179 pkt.bus = bus; in bt_monitor_new_index()
|
A D | hci_raw.c | 66 bt_monitor_new_index(BT_MONITOR_TYPE_PRIMARY, drv->bus, in bt_hci_driver_register()
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/char/ |
A D | u_bus.h | 26 struct u_bus *bus; member 80 int u_bus_register(struct u_bus *bus); 87 int u_bus_unregister(struct u_bus *bus);
|
A D | u_driver.h | 46 struct u_bus *bus; member
|
A D | u_device.h | 53 struct u_bus *bus; member
|
/AliOS-Things-master/components/py_engine/engine/drivers/ |
A D | py.mk | 3 include_directories(${MPYENGINEDIR}/drivers/bus)
|
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/ |
A D | hci_driver.h | 119 enum bt_hci_driver_bus bus; member
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/ |
A D | u_device_info.h | 61 struct u_bus_info *bus; member
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/platform/ |
A D | u_platform_bus.h | 41 u_bus_t *bus; member
|
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/ |
A D | h5_driver.c | 222 .bus = BT_HCI_DRIVER_BUS_UART,
|
/AliOS-Things-master/components/py_engine/ |
A D | aos.mk | 115 engine/drivers/bus/softqspi.c \ 116 engine/drivers/bus/softspi.c 363 $(ROOTDIR)/os/kernel_alios/components/drivers/bus/usb/include \ 365 $(ROOTDIR)/os/kernel_alios/components/drivers/bus/usb/device/class/uvc \
|
/AliOS-Things-master/components/drivers/peripheral/i2c/ |
A D | README.md | 216 > I2C是总线类型的bus,进行i2c组件读写测试,必须确保i2c总线上面有外挂i2c 从设备,并且i2c控制器id、i2c从设备地址、写入数据及长度信息都正确才能得到正确的执行结果;以上任一信息…
|
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/ |
A D | hci_driver.c | 353 .bus = BT_HCI_DRIVER_BUS_UART,
|