Lines Matching refs:pin
7 The pin module, also called pin controller, manages pin resources of the system on a chip (SoC) and…
11 Pin is a software concept designed to uniformly manage SoC pins, implement pin multiplexing, and se…
23 …oundation (HDF), the pin module uses the unified service mode for API adaptation. In this mode, a …
27 The pin module is divided into the following layers:
29 …vides APIs for obtaining a pin, setting or obtaining the pull type, pull strength, and function of…
30 - Core layer: provides APIs for matching pin resources, adding and removing a pin controller, and m…
39 The pin module supports only the LiteOS-A kernel of the small system.
45 The pin module is used to manage pin resources. Before using the SoC with the HDF, you need to perf…
49 …te pins by calling the pin driver APIs, hook functions are defined in **//drivers/hdf_core/framewo…
68 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. <br>**pul…
69 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. | **pullT…
70 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. <br>**str…
71 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. | **stren…
72 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. <br>**fun…
73 …pin controller at the core layer.<br>**index**: pin index, which is a uint32_t variable. | **funcN…
77 The pin module adaptation procedure is as follows:
81 - Instantiate the pin controller object.
86 …c_hisilicon/common/platform/pin/pin_hi35xx.c** driver of the Hi3516D V300 development board as an …
108 …ntry registration. The following example uses two pin controllers as an example. If there are more…
128 …deviceNode { // Configure an HDF device node for each pin controller.
151 …tributes in the **//device/soc/hisilicon/hi3516dv300/sdk_liteos/hdf_config/pin/pin_config.hcs** fi…
187 … ... // Add each pin under the pin controller.
189 … // Each pin controller corresponds to a controller node. If there a…
198 …#include "../../../../device/soc/hisilicon/hi3516dv300/sdk_liteos/hdf_config/pin/pin_config.hcs" /…
201 3. Instantiate the pin controller object.
212 // Custom pin description structure.
217 int32_t pullType; // Pull type of the pin.
218 int32_t strength; // Pull strength of the pin.
219 const char *func[HI35XX_PIN_FUNC_MAX]; // Array of pin function names.
225 struct Hi35xxPinDesc *desc; // Pointer to the pin description structure.
246 // Initialize the pin controller.
251 // Read the pin controller attributes from the .hcs file.
286 … // Assign the values read to the members of the pin controller to initialize the pin controller.
316 .SetPinFunc = Hi35xxPinSetFunc, // Set the pin functions.
317 .GetPinFunc = Hi35xxPinGetFunc, // Obtain the pin functions.
342 …re object and **PinCntlr** members, and calls **PinCntlrAdd()** to add the pin controller to the c…
349 // Read the pin function names of the pin controller child nodes from the .hcs file.
372 // Read the pin attributes of the pin controller child nodes from the .hcs file.
400 …ret = Hi35xxPinCntlrInit(device, hi35xx); // Initialize the pin controller.
402 …EACH_CHILD_NODE(device->property, childNode) { // Traverse each child node of the pin controller.
444 // Read the pin controller number from the .hcs file.
456 …cntlr = PinCntlrGetByNumber(number); // Obtain the pin controller based on the controll…