Lines Matching +full:peripheral +full:- +full:in

2  * Copyright (c) 2016-2017 Piotr Mienkowski
4 * SPDX-License-Identifier: Apache-2.0
23 * in gpio.h, once the official API is clean.
62 /** Connect pin to peripheral A. */
64 /** Connect pin to peripheral B. */
66 /** Connect pin to peripheral C. */
68 /** Connect pin to peripheral D. */
70 /** Connect pin to peripheral E. */
72 /** Connect pin to peripheral F. */
74 /** Connect pin to peripheral G. */
76 /** Connect pin to peripheral H. */
92 uint8_t periph_id; /** peripheral ID of the PIO controller */
101 * - configure pin(s) as input with debounce filter enabled.
102 * - connect pin(s) to a peripheral B and enable pull-up.
103 * - configure pin(s) as open drain output.
104 * All pins are configured in the same way.
109 * when configured as an output or connected to a peripheral.
110 * In some cases, e.g. when a pin is configured as an output with
111 * a pull-up and user wants to read pin's input value it is necessary
121 * Configure an arbitrary amount of pins in an arbitrary way. Each
122 * configuration entry is a single item in an array passed as an
134 * Set pin(s) defined in the mask parameter to high. The pin(s) have to be
143 pin->regs->OVRS = pin->mask; in soc_gpio_set()
145 pin->regs->PIO_SODR = pin->mask; in soc_gpio_set()
152 * Set pin(s) defined in the mask field to low. The pin(s) have to be
161 pin->regs->OVRC = pin->mask; in soc_gpio_clear()
163 pin->regs->PIO_CODR = pin->mask; in soc_gpio_clear()
170 * Get value of the pin(s) defined in the mask field.
179 return pin->regs->PVR & pin->mask; in soc_gpio_get()
181 return pin->regs->PIO_PDSR & pin->mask; in soc_gpio_get()
202 * @param div slow clock divider, valid values: from 0 to 2^14 - 1
209 pin->regs->STERS = pin->mask; in soc_gpio_debounce_length_set()
211 pin->regs->STERC = pin->mask; in soc_gpio_debounce_length_set()
214 pin->regs->PIO_SCDR = PIO_SCDR_DIV(div); in soc_gpio_debounce_length_set()