zephyr_vnd7050aj_driver/README.md

48 lines
1.7 KiB
Markdown

# Zephyr VND7050AJ Driver Module
This repository contains a Zephyr RTOS module for the STMicroelectronics VND7050AJ high-side driver.
## Module Structure
* `drivers/misc/vnd7050aj/`: Contains the C source code for the VND7050AJ driver.
* `dts/bindings/misc/`: Contains the Devicetree binding for the VND7050AJ.
* `include/zephyr/drivers/misc/vnd7050aj/`: Contains the public header file for the driver.
* `zephyr/module.yml`: Defines this directory as a Zephyr module, specifying its build configuration and DTS bindings.
## How to Use This Module
To integrate this module into your Zephyr application, follow one of these methods:
### 1. Using West (Recommended for larger projects)
If your project uses West, add the following to your `west.yml` file:
```yaml
# west.yml
projects:
- name: vnd7050aj_driver
path: modules/vnd7050aj_driver # Or your preferred path
url: <URL_TO_THIS_REPOSITORY> # Replace with the actual URL
# For local development, you can use:
# url: file:///path/to/your/local/vnd7050aj_driver
```
After modifying `west.yml`, run `west update` in your project directory.
### 2. Placing the Module Directly in Your Project
Copy the entire `zephyr_vnd7050aj_driver` directory into the `modules` directory of your Zephyr application. For example, if your application is `my_app`, the path would be `my_app/modules/zephyr_vnd7050aj_driver`.
### Kconfig Configuration
After adding the module, ensure you enable the necessary Kconfig options in your project's `prj.conf` file:
```kconfig
# prj.conf
CONFIG_VND7050AJ=y
```
## Contributing
Contributions are welcome! Please refer to the Zephyr Project's contribution guidelines for more information.