@@ -59,7 +59,7 @@ The motion recognition directory structure is as follows:
...
@@ -59,7 +59,7 @@ The motion recognition directory structure is as follows:
│ └── unittest\hdi # HDI unit test code for the motion recognition module.
│ └── unittest\hdi # HDI unit test code for the motion recognition module.
```
```
The following describes how to develop a user-mode motion driver based on the HDF. For details, see [motion_interface_driver.cpp](https://gitee.com/openharmony/drivers_peripheral/blob/master/motion/hdi_service/motion_interface_driver.cpp).
The following describes how to develop a user-mode motion driver based on the HDF. For details, see [motion_interface_driver.cpp](https://gitee.com/openharmony/drivers_peripheral/blob/OpenHarmony-3.2-Release/motion/hdi_service/motion_interface_driver.cpp).
You need to implement the **Bind()**, **Init()**, **Release()**, and **Dispatch()** functions. The **Bind()** function binds the service capability with the driver; **Init()** implements the initialization required before the driver is loaded; **Release()** reclaims resources when **Init()** fails; **Dispatch()** implements the service, which is bound in **Bind()**.
You need to implement the **Bind()**, **Init()**, **Release()**, and **Dispatch()** functions. The **Bind()** function binds the service capability with the driver; **Init()** implements the initialization required before the driver is loaded; **Release()** reclaims resources when **Init()** fails; **Dispatch()** implements the service, which is bound in **Bind()**.
@@ -30,7 +30,7 @@ Kconfig visual configuration has the following advantages:
...
@@ -30,7 +30,7 @@ Kconfig visual configuration has the following advantages:
2. Set up the environment.
2. Set up the environment.
The Kconfiglib required for environment configuration has been embedded in the OpenHarmony hb tool. For details about how to install the hb tool, see [hb Installation](../quick-start/quickstart-pkg-install-tool.md#hb-installation).
The Kconfiglib required for environment configuration has been embedded in the OpenHarmony hb tool. For details about how to install the hb tool, see [Installing hb](../quick-start/quickstart-pkg-install-tool.md#hb-installation).
3. Open the Kconfig configuration interface.
3. Open the Kconfig configuration interface.
...
@@ -44,7 +44,7 @@ Kconfig visual configuration has the following advantages:
...
@@ -44,7 +44,7 @@ Kconfig visual configuration has the following advantages:
4. Set parameters.
4. Set parameters.
For details about the parameters, see [productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json).
For details about the parameter configuration items, see **productdefine/common/base/base_product.json**.
@@ -99,7 +99,7 @@ Kconfig visual configuration has the following advantages:
...
@@ -99,7 +99,7 @@ Kconfig visual configuration has the following advantages:
### Latest Components Not Displayed in the Menu List
### Latest Components Not Displayed in the Menu List
The component list [productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json) is updated with product updates and iterations. The Kconfig menu does not contain the latest components.
The full component list **productdefine/common/base/base_product.json** is updated continuously with the product update and iteration. The Kconfig menu does not contain the latest components.
**Solution**
**Solution**
...
@@ -110,4 +110,5 @@ cd build/tools/component_tools
...
@@ -110,4 +110,5 @@ cd build/tools/component_tools
python3 generate_kconfig.py
python3 generate_kconfig.py
```
```
You can run `python3 generate_kconfig.py -h` to view more options.
You can run **python3 generate_kconfig.py -h** to view more options.