Home
last modified time | relevance | path

Searched refs:pins (Results 1 – 13 of 13) sorted by relevance

/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpioc.c57 *mode = gpioc->pins[pin].mode; in aos_gpioc_get_mode()
172 old_mode = gpioc->pins[pin].mode; in aos_gpioc_set_mode_irq()
217 gpioc->pins[pin].mode = mode; in aos_gpioc_set_mode_irq()
219 gpioc->pins[pin].irq_arg = irq_arg; in aos_gpioc_set_mode_irq()
224 gpioc->pins[pin].value = 0; in aos_gpioc_set_mode_irq()
282 mode = gpioc->pins[pin].mode; in aos_gpioc_get_value()
310 mode = gpioc->pins[pin].mode; in aos_gpioc_set_value()
318 if (gpioc->pins[pin].value == val) { in aos_gpioc_set_value()
323 gpioc->pins[pin].value = val; in aos_gpioc_set_value()
344 mode = gpioc->pins[pin].mode; in aos_gpioc_toggle()
[all …]
A Dgpioc_csi.c117 mode = gpioc->pins[pin].mode; in gpioc_csi_set_mode()
170 val = gpioc->pins[pin].value ? GPIO_PIN_HIGH : GPIO_PIN_LOW; in gpioc_csi_set_mode()
214 val = gpioc->pins[pin].value ? GPIO_PIN_HIGH : GPIO_PIN_LOW; in gpioc_csi_set_value()
/AliOS-Things-master/components/py_engine/tests/wipy/
A Duart.py42 uart = UART(baudrate=38400, pins=("GP12", "GP13"))
44 uart = UART(pins=("GP12", "GP13"))
46 uart = UART(pins=(None, "GP17"))
48 uart = UART(baudrate=57600, pins=("GP16", "GP17"))
52 uart0 = UART(0, 1000000, pins=uart_pins[0][0])
54 uart1 = UART(1, 1000000, pins=uart_pins[1][0])
73 uart0 = UART(baudrate=1000000, pins=uart_pins[0][0])
84 uart0 = UART(0, 1000000, pins=("GP12", None))
91 uart0 = UART(0, 1000000, pins=(None, "GP13"))
98 uart0 = UART(0, 1000000, pins=None)
[all …]
A Dsd.py16 sd = SD(pins=sd_pins)
23 sd = SD(0, pins=sd_pins)
24 sd = SD(id=0, pins=sd_pins)
29 sd = sd = SD(0, pins=sd_pins)
33 sd = SD(pins=())
38 sd = SD(pins=("GP10", "GP11", "GP8"))
43 sd = SD(pins=("GP10", "GP11"))
A Dspi.py16 spi = SPI(0, SPI.MASTER, baudrate=2000000, polarity=0, phase=0, firstbit=SPI.MSB, pins=spi_pins)
33 SPI(mode=SPI.MASTER, pins=spi_pins)
34 SPI(id=0, mode=SPI.MASTER, polarity=0, phase=0, pins=("GP14", "GP16", "GP15"))
35 SPI(0, SPI.MASTER, polarity=0, phase=0, pins=("GP31", "GP16", "GP15"))
37 spi = SPI(0, SPI.MASTER, baudrate=10000000, polarity=0, phase=0, pins=spi_pins)
51 spi.init(polarity=1, phase=0, pins=None)
56 spi.init(polarity=1, phase=1, pins=None)
61 spi.init(polarity=0, phase=1, pins=None)
69 spi.init(SPI.MASTER, baudrate=10000000, bits=16, polarity=0, phase=0, pins=None)
74 spi.init(SPI.MASTER, baudrate=10000000, bits=32, polarity=0, phase=0, pins=None)
[all …]
A Dpin_irq.py12 pins = ["GP16", "GP13"] variable
14 pins = ["GP16", "GP13"] variable
18 pin0 = Pin(pins[0], mode=Pin.OUT, value=1)
19 pin1 = Pin(pins[1], mode=Pin.IN, pull=Pin.PULL_UP)
A Duart_irq.py26 uart0 = UART(0, 1000000, pins=uart_pins[0][0])
27 uart1 = UART(1, 1000000, pins=uart_pins[1][0])
A Di2c.py22 i2c = I2C(mode=I2C.MASTER, baudrate=50000, pins=i2c_pins)
29 i2c = I2C(0, mode=I2C.MASTER, baudrate=400000, pins=i2c_pins)
A Dos.py16 sd = SD(pins=sd_pins)
/AliOS-Things-master/components/py_engine/tests/pyb/
A Dadcall.py3 pins = [Pin.cpu.A0, Pin.cpu.A1, Pin.cpu.A2, Pin.cpu.A3] variable
6 for p in pins:
9 for p in pins:
13 for p in pins:
16 for p in pins:
/AliOS-Things-master/components/drivers/peripheral/gpio/include/aos/
A Dgpioc_core.h45 aos_gpioc_pin_t pins[0]; member
57 if (!_gpioc->pins[_pin].hard_irq_en) { \
61 mode = _gpioc->pins[_pin].mode; \
67 _gpioc->pins[_pin].hard_irq_en = false; \
80 aos_event_set(&_gpioc->pins[pin].irq_event, mask, AOS_EVENT_OR); \
A Dgpioc_csi.h15 aos_gpioc_pin_t pins[AOS_GPIOC_CSI_MAX_NUM_PINS]; member
/AliOS-Things-master/components/csi/csi2/include/drv/
A Dgpio.h74 void (*callback)(csi_gpio_t *gpio, uint32_t pins, void *arg); ///< Call-back of gpio port

Completed in 12 milliseconds